I am iterating through a list of objects in an ng-repeat, and I want to sort them based on an attribute called approved. approved can be 'APPROVED', 'DENIED', or 'PENDING'. I want the pending to appear first, followed by the Approved, then the Denied. Sorting alphabetically wont get me this result, and i'm unsure if there is a way to specify an order to sort by using orderBy. currently it sorts alphabetically and by date:
orderBy: ['approved', 'date']
Is there any way to use orderBy to achieve this result?
Thanks.