rem: xulSortService.Sort(node, sortResource, sortDirection); 
add: xulSortService.sort(node, sortResource, sortDirection); 
context: function doSort(sortColName, naturalOrderResource){  var node = document.getElementById(sortColName);  // determine column resource to sort on  var sortResource = node.getAttribute('resource');  if (!sortResource) return(false);  var sortDirection="ascending";  var isSortActive = node.getAttribute('sortActive');  if (isSortActive == "true")  {    sortDirection = "ascending";    var currentDirection = node.getAttribute('sortDirection');    if (currentDirection == "ascending")    {      if (sortResource != naturalOrderResource)      {        sortDirection = "descending";      }    }    else if (currentDirection == "descending")    {      if (naturalOrderResource != null && naturalOrderResource != "")      {        sortResource = naturalOrderResource;      }    }  }  var isupports = Components.classes["@mozilla.org/xul/xul-sort-service;1"].getService();  if (!isupports)    return(false);  var xulSortService = isupports.QueryInterface(Components.interfaces.nsIXULSortService);  if (!xulSortService)    return(false);  try  {    xulSortService.Sort(node, sortResource, sortDirection);  }  catch(ex)  {    debug("Exception calling xulSortService.Sort()");  }  return(true);}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/806c8a51d30623f62257e381938a6b0e4aaae704/search-editor.js/buggy/xpfe/components/search/resources/search-editor.js