mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-01 05:43:46 +00:00
Bug 142864 Wrong string order in Add Language dialog (when there are accented letters)
patch by jerfa@yahoo.com r=smontagu sr=tor
This commit is contained in:
parent
83270e5dba
commit
285e4c3839
@ -212,10 +212,8 @@ function ReadAvailableLanguages()
|
||||
} //if accepted
|
||||
} //while
|
||||
availLanguageDict.sort( // sort on first element
|
||||
function (a, b) {
|
||||
if (a[0] < b[0]) return -1;
|
||||
if (a[0] > b[0]) return 1;
|
||||
return 0;
|
||||
function compareFn(a, b) {
|
||||
return a[0].localeCompare(b[0]);
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user