export const sort = (ts: T[], compareFn?: (a: T, b: T) => number): T[] => [ ...ts ].sort(compareFn);