Sorts an array of objects by a key.
(a new) sorted array
an array to sort
the field key by which to sort
the sort direction (default ascending)
Generated using TypeDoc
Sorts an array of objects by a key.
Returns
(a new) sorted array