orderBy ionic 2?

Has someone seen or written an implementation of orderBy for ionic 2 ?
I want to sort a list, I believe it must rely on pipes…and I would prefer not to reinvent the wheel…

Thanks in advance

1 Like

Unfortunately the orderBy pipe and the filter pipe aren’t implemented in Angular 2 and idk when will it be, idk if it will ever be, my fix was to made one filter pipe based on angular1’s.

2 Likes

Another option is to just sort them in your angular2 version of a controller. Underscore’s sortBy function is convenient.

1 Like