Documentation

sort()

Sorts the list using the provided callback.

sort(compareFn: (a: T, b: T) => number): this;

Related