Hello there,
I am using performing sorting in our angularJS application using Orderby. But when triing to sort the list that is track by $index it doesn't work.
Tried doing the same in the example for orderBy (https://docs.angularjs.org/api/ng/filter/orderBy) on angularJS official website through Plunker and it seems to be issue there too
Documentation for ngRepeat mentions that:
Filters should be applied to the expression, before specifying a tracking expression.
So try this instead:
ng-repeat="friend in friends | orderBy:predicate:reverse track by $index"
Thanks got the issue resolved :+1:
thanks, it's _work
Most helpful comment
Documentation for ngRepeat mentions that:
So try this instead: