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 sortedBy<T>(value: T[], transform: (it: T) => number): T[] {
return [...value].sort((a, b) => transform(a) - transform(b));
return value.toSorted((a, b) => transform(a) - transform(b));
}