export function __TS__ArrayToSorted(this: T[], compareFn?: (a: T, b: T) => number): T[] { const copy = [...this]; copy.sort(compareFn); return copy; }