fix(mobile): support Hermes collection sorting

Reuses the focused compatibility approach from closed PR #3923 and covers the remaining hardware-keyboard reverse iteration.

Co-authored-by: codex <[email protected]>
This commit is contained in:
Julius Marmingeandcodex committed 2026-08-14 11:23:26 +02:00
1 parent 9c65560b35
commit 32b749d07e
8 files changed
+72 -22

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
export function copySorted<T>(
values: ReadonlyArray<T>,
compareFn?: (left: T, right: T) => number,
): T[] {
return [...values].sort(compareFn);
}