rem: var count = top.importService.GetModuleCount( top.importType); for (var i = 0; i < count; i++) { AddModuleToList( top.importService.GetModuleName( top.importType, i), i); 
add: var count = top.importService.GetModuleCount(top.importType); var i;  var moduleArray = new Array(count); for (i = 0; i < count; i++) { moduleArray[i] = {name:top.importService.GetModuleName(top.importType, i), index:i }; }   moduleArray.sort(CompareImportModuleName);  for (i = 0; i < count; i++) { AddModuleToList(moduleArray[i].name, moduleArray[i].index); 
context: function ListModules() {  if (top.importService == null)    return;  var body = document.getElementById( "bucketBody");  var max = body.childNodes.length - 1;  while (max >= 0) {    body.removeChild( body.childNodes[max]);    max--;  }  var count = top.importService.GetModuleCount( top.importType);  for (var i = 0; i < count; i++) {    AddModuleToList( top.importService.GetModuleName( top.importType, i), i);  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/d08d4d3f9753b01573c0820f3dc3010c62295d11/importDialog.js/clean/mailnews/import/resources/content/importDialog.js