rem: { filterList.insertFilterAt(start.value - j, curFilter); } 
add: filterList.insertFilterAt(index++, curFilter); 
context: function runSelectedFilters(){  // if run button has "stop" label, do stop.  if (gRunFiltersButton.getAttribute("label") == gRunFiltersButton.getAttribute("stoplabel")) {    gFilterListMsgWindow.StopUrls();    return;  }    var folderURI = gRunFiltersFolderPicker.getAttribute("uri");  var resource = gRDF.GetResource(folderURI);  var msgFolder = resource.QueryInterface(Components.interfaces.nsIMsgFolder);  var filterService = Components.classes["@mozilla.org/messenger/services/filters;1"].getService(Components.interfaces.nsIMsgFilterService);  var filterList = filterService.getTempFilterList(msgFolder);  var folders = Components.classes["@mozilla.org/supports-array;1"].createInstance(Components.interfaces.nsISupportsArray);  folders.AppendElement(msgFolder);  // make sure the tmp filter list uses the real filter list log stream  filterList.logStream = currentFilterList().logStream;  filterList.loggingEnabled = currentFilterList().loggingEnabled;  var sel = gFilterTree.view.selection;  for (var i = 0; i < sel.getRangeCount(); i++) {    var start = {}, end = {};    sel.getRangeAt(i, start, end);    for (var j = start.value; j <= end.value; j++) {      var curFilter = getFilter(j);      if (curFilter)      {        filterList.insertFilterAt(start.value - j, curFilter);      }    }  }  filterService.applyFiltersToFolders(filterList, folders, gFilterListMsgWindow);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10234/2e51b79ff4d63340b9f7aee905e54e6dfbcad9d2/FilterListDialog.js/clean/mailnews/base/search/resources/content/FilterListDialog.js