rem: var isupports = Components.classes["component: if (!isupports)    return(false); var xulSortService = isupports.QueryInterface(Components.interfaces.nsIXULSortService); if (!xulSortService)    return(false); xulSortService.Sort(node, sortResource, sortDirection);  
add: try { var isupports = Components.classes["component: if (!isupports)    return(false); var xulSortService = isupports.QueryInterface(Components.interfaces.nsIXULSortService); if (!xulSortService)    return(false); xulSortService.Sort(node, sortResource, sortDirection); } catch(ex) { } 
context: function setInitialSort(node, sortDirection){	// determine column resource to sort on	var sortResource = node.getAttribute('resource');	if (!sortResource) return(false);	var isupports = Components.classes["component://netscape/rdf/xul-sort-service"].getService();	if (!isupports)    return(false);	var xulSortService = isupports.QueryInterface(Components.interfaces.nsIXULSortService);	if (!xulSortService)    return(false);	xulSortService.Sort(node, sortResource, sortDirection);	return(true);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/0a66f0a4b847bdfd24ad8cbc6564848f0202d957/internet.js/buggy/xpfe/components/search/resources/internet.js