summaryrefslogtreecommitdiffhomepage
path: root/gui/src
diff options
context:
space:
mode:
Diffstat (limited to 'gui/src')
-rw-r--r--gui/src/renderer/app.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/gui/src/renderer/app.tsx b/gui/src/renderer/app.tsx
index 69c55d4000..4a6910d4e8 100644
--- a/gui/src/renderer/app.tsx
+++ b/gui/src/renderer/app.tsx
@@ -563,12 +563,12 @@ export default class AppRenderer {
longitude: city.longitude,
hasActiveRelays: city.relays.some((relay) => relay.active),
relays: city.relays.sort((relayA, relayB) =>
- relayA.hostname.localeCompare(relayB.hostname),
+ relayA.hostname.localeCompare(relayB.hostname, this.locale, { numeric: true }),
),
}))
- .sort((cityA, cityB) => cityA.name.localeCompare(cityB.name)),
+ .sort((cityA, cityB) => cityA.name.localeCompare(cityB.name, this.locale)),
}))
- .sort((countryA, countryB) => countryA.name.localeCompare(countryB.name));
+ .sort((countryA, countryB) => countryA.name.localeCompare(countryB.name, this.locale));
}
private setRelays(relayList: IRelayList) {