rem: var isupports = Components.classes["@mozilla.org/rdf/xul-sort-service;1"].getService(); if (!isupports)    return(false);  var xulSortService = isupports.QueryInterface(Components.interfaces.nsIXULSortService); if (!xulSortService)    return(false); 
add: var isupports = Components.classes["@mozilla.org/rdf/xul-sort-service;1"].getService(); if (!isupports) return false;  var xulSortService = isupports.QueryInterface(Components.interfaces.nsIXULSortService); if (!xulSortService) return false; 
context: function DoSort(column, key, direction){	var isupports = Components.classes["@mozilla.org/rdf/xul-sort-service;1"].getService();	if (!isupports)    return(false);		var xulSortService = isupports.QueryInterface(Components.interfaces.nsIXULSortService);	if (!xulSortService)    return(false);	var node = document.getElementById(column);		if ( node )	{		var selectionArray = RememberResultsTreeSelection();		if (selectionArray.length)		{			xulSortService.Sort(node, key, direction);			ClearResultsTreeSelection()	;			WaitUntilDocumentIsLoaded();			RestoreResultsTreeSelection(selectionArray);		}		else 		{			try {				xulSortService.Sort(node, key, direction);				WaitUntilDocumentIsLoaded();			}			catch (ex) {				dump("failed to do sort\n");			}			}	}}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/0bae2ed72e9748283256fed72e6330994a6cb0fd/abCommon.js/buggy/mailnews/addrbook/resources/content/abCommon.js