diff options
Diffstat (limited to 'gui/src')
| -rw-r--r-- | gui/src/renderer/app.tsx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gui/src/renderer/app.tsx b/gui/src/renderer/app.tsx index 69c55d4000..72344fc25f 100644 --- a/gui/src/renderer/app.tsx +++ b/gui/src/renderer/app.tsx @@ -563,12 +563,16 @@ 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, { numeric: true }), + ), })) - .sort((countryA, countryB) => countryA.name.localeCompare(countryB.name)); + .sort((countryA, countryB) => + countryA.name.localeCompare(countryB.name, this.locale, { numeric: true }), + ); } private setRelays(relayList: IRelayList) { |
