Answered over at https://groups.google.com/forum/#!topic/angular/XAJ2hyeRSTU
This is the html http://plnkr.co/edit/VH2WvyJMsLSTpWJawT2f?p=preview orderBy: [orderByPrice, orderByPriority]
and the JS
$scope.orderByPrice = function (result) {
if ($scope.orderBy == 'price-low-high') {
return result.amount;
}
if ($scope.orderBy == 'price-high-low') {
return -result.amount;
}
else return result.totalPrice.amount;
};
$scope.orderByPriority = function (result) {
return result.priority;
};