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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -