rem: if (a.name < b.name) return -1; if (a.name > b.name) return 1; return 0; 
add: return a.name.localeCompare(b.name); 
context:   _buildAvailableLanguageList: function ()  {    var availableLanguagesPopup = document.getElementById("availableLanguagesPopup");    while (availableLanguagesPopup.hasChildNodes())      availableLanguagesPopup.removeChild(availableLanguagesPopup.firstChild);          // Sort the list of languages by name    this._availableLanguagesList.sort(function (a, b) {                                        if (a.name < b.name) return -1;                                        if (a.name > b.name) return 1;                                        return 0;                                      });                                      // Load the UI with the data    for (var i = 0; i < this._availableLanguagesList.length; ++i) {      var abCD = this._availableLanguagesList[i].abcd;      if (this._availableLanguagesList[i].isVisible &&           (!(abCD in this._acceptLanguages) || !this._acceptLanguages[abCD])) {        var menuitem = document.createElement("menuitem");        menuitem.id = this._availableLanguagesList[i].abcd;        availableLanguagesPopup.appendChild(menuitem);        menuitem.setAttribute("label", this._availableLanguagesList[i].name);      }    }  },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/bcfb55920da827d9b051a635a73d086e4051b387/languages.js/clean/browser/components/preferences/languages.js