Pier Angelo Vendrame pushed to branch mullvad-browser-115.9.1esr-13.0-1 at The Tor Project / Applications / Mullvad Browser

Commits:

1 changed file:

Changes:

  • browser/components/preferences/main.js
    ... ... @@ -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) {