I would like to order a friend list by status (online firsts, offline lasts) and by alphabetical order. All I manage to get is:
In Angular 1.5.8 previous example does not work. Different logic has to be applied.
It looks logic from previous orderBy is applied to the next one, so in order to sort name ASC and status DESC name order has to be reveresed:
-
Here is fixed example: http://plnkr.co/edit/0ZFIftSgNkU9F03xJztG?p=preview