Pier Angelo Vendrame pushed to branch mullvad-browser-115.9.1esr-13.0-1 at The Tor Project / Applications / Mullvad Browser
Commits:
-
e3dbf1b5
by Pier Angelo Vendrame at 2024-04-08T17:41:35+02:00
1 changed file:
Changes:
... | ... | @@ -1463,7 +1463,9 @@ var gMainPane = { |
1463 | 1463 | name,
|
1464 | 1464 | };
|
1465 | 1465 | });
|
1466 | - locales.sort((a, b) => a.code.localeCompare(b.code));
|
|
1466 | + // tor-browser#42335: Sort language codes independently from the locale,
|
|
1467 | + // so do not use localeCompare.
|
|
1468 | + locales.sort((a, b) => a.code > b.code);
|
|
1467 | 1469 | |
1468 | 1470 | let fragment = document.createDocumentFragment();
|
1469 | 1471 | for (let { code, name } of locales) {
|