Sorts the array
orderBy([2, 1, 2, 5]); // [1,2,2,5]
orderBy([2, 1, 2, 5], "desc"); // [5,2,2,1]
Optional
orderBy([{count:1}, {count:20}, {count:15}], "count", "asc"); // [{count:1},{count:15},{count:20}]
Generated using TypeDoc
Sorts the array
Example
Example