Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

orderBy $index descending with track by $index not working #12405

Closed
@OlsonDev

Description

@OlsonDev

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions