diff --git a/xpfe/components/prefwindow/resources/content/pref-languages.js b/xpfe/components/prefwindow/resources/content/pref-languages.js index ccef690e6a9..527a196c709 100644 --- a/xpfe/components/prefwindow/resources/content/pref-languages.js +++ b/xpfe/components/prefwindow/resources/content/pref-languages.js @@ -200,7 +200,12 @@ function ReadAvailableLanguages() //} //if visible } //if accepted } //while - availLanguageDict.sort(); + 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; + }); }