The best way to control Claude Code, Codex and more from any computer or phone

main
ts 6 lines 153 Bytes
Raw
1 export function copySorted<T>(
2 values: ReadonlyArray<T>,
3 compareFn?: (left: T, right: T) => number,
4 ): T[] {
5 return [...values].sort(compareFn);
6 }