javascript - Combining 'orderBy' with another filter in Angular -


is there way order array output of filter? have expression this:

<li ng-repeat="sub in subscriptions">   {{sub | subscriptionoutput}} </li> 

here subscriptions array of objects, details of unimportant, , subscriptionoutput custom filter.

now, order list (alphabetically) output of subscriptionoutput filter. how can accomplish this? know can write function , sort that, i'm hoping there slicker way.

you can pipe filters together:

{{sub | subscriptionoutput | orderby:"somekey"}} 

Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -