angularjs - In Ionic Framework using angular.js product sorting is not working fine -


thanks in advanced.

i facing problem in angular.

i working on e-commerce application. implement product sorting using product price only.

my html code is

ng-repeat="x in pc.prodlisting | orderby:pc.selectprice | filter:pc.searchproducts" 

i use here orderby sorting high low or low high price

i pass +

filter working fine in code... result not properly. actually, filtering working on first charecter e.g if have array of number (10, 100, 31, 12, 19) after applying filter return array(10, 100, 12, 19, 31) don't know wrong in code.. , main problem..

orderby doing unicode sorting instead of number sorting. means selectprice string value. change number using parseint(str) on backend , work expected.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -