rem: sortDirection = "ascending"; 
add: var sortDirection; 
context: function SortResultPane(column, sortKey){	var node = document.getElementById(column);	if(!node)    return(false);	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);	// sort!!!	sortDirection = "ascending";    var currentDirection = node.getAttribute('sortDirection');    if (currentDirection == "ascending")            sortDirection = "descending";    else if (currentDirection == "descending")            sortDirection = "ascending";    else    sortDirection = "ascending";	xulSortService.Sort(node, sortKey, sortDirection);    return(true);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/8cbc05398526fdb6ab4254df8d8119d5eb7115e0/abCommon.js/buggy/mailnews/addrbook/resources/content/abCommon.js