orderBy
ng
Orders a specified array
by the expression
predicate.
filter:orderBy(array, expression[, reverse]);
Param | Type | Details |
---|---|---|
array | Array | The array to sort. |
expression | function(*)stringArray.<(function(*)|string)> | A predicate to be used by the comparator to determine the order of elements. Can be one of:
|
reverse (optional) | boolean | Reverse the order the array. |
Array | Sorted copy of the source array. |