Pier Angelo Vendrame pushed to branch tor-browser-115.5.0esr-13.5-1 at The Tor Project / Applications / Tor Browser
Commits:
-
45ac92cc
by Pier Angelo Vendrame at 2023-12-13T12:29:04+01: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) {
|