js-util

Home > rc-js-util > ATypedArrayTuple > sort

ATypedArrayTuple.sort() method

Sorts an array.

Signature:

sort(_compareFn?: (a: number, b: number) => number): this;

Parameters

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