Skip to content

Commit 0fe4644

Browse files
committed
fix: remove all Array.prototype.toSorted calls
1 parent 3f3e201 commit 0fe4644

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/src/modules/dashboard/Navbar/proxyUtils.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export function sortProxiesByLatency(
44
proxies: Proxies,
55
latencies: ProxyLatencies,
66
) {
7-
return proxies.toSorted((a, b) => {
7+
return [...proxies].sort((a, b) => {
88
const latencyA = latencies?.[a.id]?.latencyMS ?? Number.POSITIVE_INFINITY;
99
const latencyB = latencies?.[b.id]?.latencyMS ?? Number.POSITIVE_INFINITY;
1010
return latencyA - latencyB;

0 commit comments

Comments
 (0)