Angularjs wrong $index after orderBy
问题 I am new to Angular.js and have some problems sorting my array and working on that sorted data. I have a list with items and want so sort it by \"Store.storeName\", which is working so far. But after sorting the data, my delete-function is not working anymore. I think thats because the $index is wrong after sorting, and so the wrong data is deleted. How can I solve that? Ordering the data in the scope and not in the view? How to do that? Here is some relevant code: In the View: <tr ng-repeat=