/** * Sort the elements of an `ImmutableArray` in increasing order. * * @tsplus static ImmutableArray.Aspects sort * @tsplus pipeable ImmutableArray sort */ export function sort(O: Ord) { return (self: ImmutableArray): ImmutableArray => new ImmutableArray([...self].sort((x, y) => O.compare(x, y))) }