rem: if (sortedColumn != "threadCol") { currCol = document.getElementById("threadCol"); if (currCol) { if (gDBView.viewFlags & nsMsgViewFlagsType.kThreadedDisplay) currCol.setAttribute("sortDirection", "ascending"); else currCol.removeAttribute("sortDirection"); } } 
context: function UpdateSortIndicators(sortType, sortOrder){  // show the twisties if the view is threaded  var currCol = document.getElementById("subjectCol");  var primary = (gDBView.viewFlags & nsMsgViewFlagsType.kThreadedDisplay) && gDBView.supportsThreading;  currCol.setAttribute("primary", primary);  // remove the sort indicator from all the columns  currCol = document.getElementById("threadCol");  while (currCol) {    currCol.removeAttribute("sortDirection");    currCol = currCol.nextSibling;  }  // set the sort indicator on the column we are sorted by  var colID = ConvertSortTypeToColumnID(sortType);  if (colID) {    var sortedColumn = document.getElementById(colID);    if (sortedColumn) {      if (sortOrder == nsMsgViewSortOrder.ascending) {        sortedColumn.setAttribute("sortDirection","ascending");      }      else {        sortedColumn.setAttribute("sortDirection","descending");      }			if (sortedColumn != "threadCol")			{			  currCol = document.getElementById("threadCol");				if (currCol)				{					if (gDBView.viewFlags & nsMsgViewFlagsType.kThreadedDisplay)						currCol.setAttribute("sortDirection", "ascending");					else						currCol.removeAttribute("sortDirection");				}			}    }  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/b600b5d10128d0ec3f11e7f7d0230109b4b7a71f/threadPane.js/buggy/mailnews/base/resources/content/threadPane.js