An array of objects to be sorted. Default value is an empty array.
The key based on which the objects should be sorted.
The sorting order. Default value is 1 (ascending), but can be set to -1 for descending order.
The sorted array of objects based on the specified key and order.
Generated using TypeDoc
Sorts an array of objects based on a specified key in ascending or descending order.