AngularJS $index Fix After orderBy Sorting
AngularJS $index Fix After orderBy Sorting: a task in Terminal-Lego-15k (Harbor dataset). You are working with an AngularJS application that displays a list of shopping items. The list is sorted by store name using the orderBy filter in the view. However, there's a bug: when users try to delete an…
The task
You are working with an AngularJS application that displays a list of shopping items. The list is sorted by store name using the `orderBy` filter in the view. However, there's a bug: when users try to delete an item, the wrong item gets deleted because `$index` refers to the index in the *sorted* view, not the…
Part of PrimeIntellect/Terminal-Lego-15k.