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 -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -