rem: dump("Exception calling xulSortService.Sort()\n"); 
add: debug("Exception calling xulSortService.Sort()\n"); 
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)	{		dump("Exception calling xulSortService.Sort()\n");	}	return(false);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/6197c55530dd458e95a4a1648fc63abe759aa780/bookmarks.js/buggy/suite/common/bookmarks/bookmarks.js