rem: try { 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); xulSortService.Sort(node, sortResource, sortDirection); } catch(ex) { } return(true); 
add: try { 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); xulSortService.Sort(node, sortResource, sortDirection); } catch(ex) { } return(true); 
context: function setInitialSort(node, sortDirection){	// determine column resource to sort on	var sortResource = node.getAttribute('resource');	if (!sortResource) return(false);	try	{		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);		xulSortService.Sort(node, sortResource, sortDirection);	}	catch(ex)	{	}	return(true);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/0b2dd2b2d2fd037df917e07645fa019a963332a5/shared.js/buggy/xpfe/components/search/resources/shared.js