diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2022-01-04 09:33:07 +0100 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2022-01-04 09:33:07 +0100 |
| commit | bff9b282f9197057dcce7d456a04a34054428ffb (patch) | |
| tree | aa7652f366cfb82b69243d903c266118ed5a2fc1 /gui/src/renderer | |
| parent | c372d087fe76538fcf3f0e593576fc28570442c1 (diff) | |
| download | mullvadvpn-bff9b282f9197057dcce7d456a04a34054428ffb.tar.xz mullvadvpn-bff9b282f9197057dcce7d456a04a34054428ffb.zip | |
Fix location sorting in non-english languages
Diffstat (limited to 'gui/src/renderer')
| -rw-r--r-- | gui/src/renderer/components/LocationList.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/src/renderer/components/LocationList.tsx b/gui/src/renderer/components/LocationList.tsx index 855efdc066..be29c2c1dc 100644 --- a/gui/src/renderer/components/LocationList.tsx +++ b/gui/src/renderer/components/LocationList.tsx @@ -430,10 +430,10 @@ export class RelayLocations extends React.PureComponent< ), }; }) - .sort((a, b) => a.name.localeCompare(b.name, this.props.locale)), + .sort((a, b) => a.label.localeCompare(b.label, this.props.locale)), }; }) - .sort((a, b) => a.name.localeCompare(b.name, this.props.locale)); + .sort((a, b) => a.label.localeCompare(b.label, this.props.locale)); } private formatRowName( |
