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:
timeless%mozdev.org 2006-05-17 02:39:25 +00:00
parent 83270e5dba
commit 285e4c3839

View File

@ -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]);
});
}