Home > @rushstack/node-core-library > Sort
Sort class
Operations for sorting collections.
Signature:
export declare class Sort
Methods
Method | Modifiers | Description |
|---|---|---|
| Compares | |
| Returns true if the collection is already sorted. | |
| Returns true if the collection is already sorted by the specified key. | |
| Sorts the array according to a key which is obtained from the array elements. The result is guaranteed to be a stable sort. | |
| Sort the keys deeply given an object or an array. Doesn't handle cyclic reference. | |
| Sorts the entries in a Map object according to the map keys. The result is guaranteed to be a stable sort. | |
| Sorts the entries in a Set object. The result is guaranteed to be a stable sort. | |
| Sorts the entries in a Set object according to the specified keys. The result is guaranteed to be a stable sort. |