rem: xulSortService.Sort(node, key, direction); ClearResultsTreeSelection()	; WaitUntilDocumentIsLoaded(); RestoreResultsTreeSelection(selectionArray); 
add: if (selectionArray.length) { xulSortService.Sort(node, key, direction); ClearResultsTreeSelection()	; WaitUntilDocumentIsLoaded(); RestoreResultsTreeSelection(selectionArray); } 
context: function DoSort(column, key, direction){	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);	var node = document.getElementById(column);		if ( node )	{		var selectionArray = RememberResultsTreeSelection();		xulSortService.Sort(node, key, direction);		ClearResultsTreeSelection()	;		WaitUntilDocumentIsLoaded();		RestoreResultsTreeSelection(selectionArray);	}}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/bd10e116b4e926bae1c91098762fe85bc730a028/abCommon.js/clean/mailnews/addrbook/resources/content/abCommon.js