Home > rc-js-util > ATypedArrayTuple > sort
Sorts an array.
Signature:
sort(_compareFn?: (a: number, b: number) => number): this;
Parameter | Type | Description |
---|---|---|
_compareFn | (a: number, b: number) => number | (Optional) The name of the function used to determine the order of the elements. If omitted, the elements are sorted in ascending, ASCII character order. |
Returns:
this