rem: var isupports = Components.classes["component: 
add: var isupports = Components.classes[XULSORTSERVICE_PROGID].getService(); 
context: function doSort(sortColName){	var node = document.getElementById(sortColName);	if (!node) return(false);	// determine column resource to sort on	var sortResource = node.getAttribute('resource');	// switch between ascending & descending sort (no natural order support)	var sortDirection="ascending";	var isSortActive = node.getAttribute('sortActive');	if (isSortActive == "true")	{		var currentDirection = node.getAttribute('sortDirection');		if (currentDirection == "ascending")		{			sortDirection = "descending";		}	}	try	{		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);	}	catch(ex)	{	}	return(false);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/66819b4a49eb4f10739e2b38bf5384c344868822/directory.js/clean/xpfe/components/directory/directory.js