Home > @infiniteobjects/core-library-web > Sort
Operations for sorting collections.
Signature:
export declare class Sort
Method | Modifiers | Description |
---|---|---|
compareByValue(x, y) | static |
Compares x and y using the JavaScript > and < operators. This function is suitable for usage as the callback for array.sort() . |
sortBy(array, keySelector, comparer) | static |
Sorts the array according to a key which is obtained from the array elements. The result is guaranteed to be a stable sort. |