Small Refactor

This commit is contained in:
2026-04-29 18:24:32 +02:00
parent 24838b8f77
commit a1bbf7cd1a
8 changed files with 20 additions and 20 deletions

View File

@@ -1,3 +1,3 @@
export function sortedWith<T>(value: T[], compare: (a: T, b: T) => number): T[] {
return [...value].sort(compare);
return value.toSorted(compare);
}