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

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -