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

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -