rem: 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"; } 
add: 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"; } 
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: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/e9736d961a24945c2f31d67dc799c3c803d7729a/bookmarks.js/clean/xpfe/components/bookmarks/resources/bookmarks.js