rem: var node = frames[0].frames[1].document.getElementById(column); 
add: var threadPane = GetThreadPane();  var node = threadPane.document.getElementById(column); 
context: function SortThreadPane(column, sortKey){	var node = frames[0].frames[1].document.getElementById(column);	if(!node)		return false;	var rdfCore = XPAppCoresManager.Find("RDFCore");	if (!rdfCore)	{		rdfCore = new RDFCore();		if (!rdfCore)		{			return(false);		}		rdfCore.Init("RDFCore");	}	// sort!!!	sortDirection = "ascending";    var currentDirection = node.getAttribute('sortDirection');    if (currentDirection == "ascending")            sortDirection = "descending";    else if (currentDirection == "descending")            sortDirection = "ascending";    else    sortDirection = "ascending";    rdfCore.doSort(node, sortKey, sortDirection);    return(true);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/c2d6a0ed81b0fc6389a9ff05a145c7115ff6aa23/commandglue.js/clean/mailnews/base/resources/content/commandglue.js