diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2019-09-17 14:38:55 +0200 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2019-09-17 14:38:55 +0200 |
| commit | ed02d46e2b4b44be4e349e1e790424278147a10c (patch) | |
| tree | d84fe567be4ae5fd94978ae730e26382cec3dffe /gui/src | |
| parent | 90b96328055459fac3ba492d257e7afcafad78dd (diff) | |
| download | mullvadvpn-ed02d46e2b4b44be4e349e1e790424278147a10c.tar.xz mullvadvpn-ed02d46e2b4b44be4e349e1e790424278147a10c.zip | |
Don't sort countries and cities with natural sorting
Diffstat (limited to 'gui/src')
| -rw-r--r-- | gui/src/renderer/app.tsx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gui/src/renderer/app.tsx b/gui/src/renderer/app.tsx index 72344fc25f..4a6910d4e8 100644 --- a/gui/src/renderer/app.tsx +++ b/gui/src/renderer/app.tsx @@ -566,13 +566,9 @@ export default class AppRenderer { relayA.hostname.localeCompare(relayB.hostname, this.locale, { numeric: true }), ), })) - .sort((cityA, cityB) => - cityA.name.localeCompare(cityB.name, this.locale, { numeric: true }), - ), + .sort((cityA, cityB) => cityA.name.localeCompare(cityB.name, this.locale)), })) - .sort((countryA, countryB) => - countryA.name.localeCompare(countryB.name, this.locale, { numeric: true }), - ); + .sort((countryA, countryB) => countryA.name.localeCompare(countryB.name, this.locale)); } private setRelays(relayList: IRelayList) { |
