orderBy ionic 2?


#1

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


#2

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.


#3

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