orderBy $index descending with track by $index not working #12405
Description
Hi. I came across #8334 but it's slightly different than my use case. I have an array of 0
's and 1
's I need to list in reverse order. I put together a plunk to demonstrate the issue. In the plunk, I made it an array of 0
, 1
, 2
, & 3
to demonstrate the issue more clearly. Because my array items are not objects I need to use track by $index
but I need the array reversed visually so I need an orderBy
filter. I'd rather not duplicate the array and reverse it because then that duplication would happen every digest cycle or I'd have to track changes manually. Many others seem content with this solution though. However, even back in 2013, people seemed to think this solution should work. They just didn't file an issue... so I am.