rem: var isupports = Components.classes["component: 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(false); 
add: var isupports_uri = "component: var isupports = Components.classes[isupports_uri].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 false; 
context: function doSort(sortColName){	var node = document.getElementById(sortColName);	// determine column resource to sort on	var sortResource = node.getAttribute('resource');	if (!node)	return(false);	var sortDirection="ascending";	var isSortActive = node.getAttribute('sortActive');	if (isSortActive == "true")	{		var currentDirection = node.getAttribute('sortDirection');		if (currentDirection == "ascending")			sortDirection = "descending";		else if (currentDirection == "descending")			sortDirection = "natural";		else	sortDirection = "ascending";	}	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);	try	{		xulSortService.Sort(node, sortResource, sortDirection);	}	catch(ex)	{		debug("Exception calling xulSortService.Sort()");	}	return(false);}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/e9736d961a24945c2f31d67dc799c3c803d7729a/bookmarks.js/buggy/xpfe/components/bookmarks/resources/bookmarks.js