rem: else { xulSortService.Sort(node, key, direction); WaitUntilDocumentIsLoaded(); } 
add: else { try { xulSortService.Sort(node, key, direction); WaitUntilDocumentIsLoaded(); } catch (ex) { dump("failed to do sort\n"); } } 
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                 {			xulSortService.Sort(node, key, direction);			WaitUntilDocumentIsLoaded();                } 	}}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/d4e116148d315b404c34e772f81c4a6ccfd91440/abCommon.js/buggy/mailnews/addrbook/resources/content/abCommon.js