Pier Angelo Vendrame pushed to branch tor-browser-115.9.1esr-13.0-1 at The Tor Project / Applications / Tor Browser
Commits:
-
c584d988
by Pier Angelo Vendrame at 2024-04-08T17:40:45+02:00
1 changed file:
Changes:
... | ... | @@ -1456,7 +1456,9 @@ var gMainPane = { |
1456 | 1456 | name,
|
1457 | 1457 | };
|
1458 | 1458 | });
|
1459 | - locales.sort((a, b) => a.code.localeCompare(b.code));
|
|
1459 | + // tor-browser#42335: Sort language codes independently from the locale,
|
|
1460 | + // so do not use localeCompare.
|
|
1461 | + locales.sort((a, b) => a.code > b.code);
|
|
1460 | 1462 | |
1461 | 1463 | let fragment = document.createDocumentFragment();
|
1462 | 1464 | for (let { code, name } of locales) {
|