add:  UpdateSortIndicator(column, direction); 
context: function SortThreadPane(column, sortKey, secondarySortKey, toggleCurrentDirection, direction){	var node = document.getElementById(column);	if(!node)		return false;	if(!direction)	{		direction = "ascending";		//If we just clicked on the same column, then change the direction		if(toggleCurrentDirection)		{			var currentDirection = node.getAttribute('sortDirection');			if (currentDirection == "ascending")					direction = "descending";			else if (currentDirection == "descending")					direction = "ascending";		}	}   var folder = GetSelectedFolder();	if(folder)	{		folder.setAttribute("sortResource", sortKey);		folder.setAttribute("sortDirection", direction);	}	SetActiveThreadPaneSortColumn(column);	var selection = SaveThreadPaneSelection();	var beforeSortTime = new Date();	var result = SortColumn(node, sortKey, secondarySortKey, direction);	var afterSortTime = new Date();	var timeToSort = (afterSortTime.getTime() - beforeSortTime.getTime())/1000;	if(showPerformance)		dump("timeToSort is " + timeToSort + "seconds\n");	RestoreThreadPaneSelection(selection);	return result;}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/e54510825f7ce0c21f6041a97e3bc4be7ba8cfc5/commandglue.js/buggy/mailnews/base/resources/content/commandglue.js