export function sortedWith(value: T[], compare: (a: T, b: T) => number): T[] { return value.toSorted(compare); }