rem: var colID = ConvertSortTypeToColumnID(sortType); var sortedColumn; 
add:  var currCol = document.getElementById("subjectCol"); var primary = (sortType == nsMsgViewSortType.byThread) && gDBView.supportsThreading; currCol.setAttribute("primary", primary);   currCol = document.getElementById("threadCol"); while (currCol) { currCol.removeAttribute("sortDirection"); currCol = currCol.nextSibling; } 
context: function UpdateSortIndicators(sortType, sortOrder){  var colID = ConvertSortTypeToColumnID(sortType);  var sortedColumn;  // set the sort indicator on the column we are sorted by  if (colID) {    sortedColumn = document.getElementById(colID);    if (sortedColumn) {      if (sortOrder == nsMsgViewSortOrder.ascending) {        sortedColumn.setAttribute("sortDirection","ascending");      }      else {        sortedColumn.setAttribute("sortDirection","descending");      }      // remove the sort indicator from all the columns      // except the one we are sorted by      var currCol = sortedColumn.parentNode.firstChild;      while (currCol) {        if (currCol != sortedColumn && currCol.localName == "treecol")          currCol.removeAttribute("sortDirection");        currCol = currCol.nextSibling;      }    }  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/750ade5aeea113f27554fe02222d1a3fc877bb90/threadPane.js/clean/mailnews/base/resources/content/threadPane.js