rem: if (dbview.sortType == sortType) { MsgReverseSortThreadPane(); 
add:  if (simpleColumns) MsgToggleThreaded(); else if (dbview.viewFlags & nsMsgViewFlagsType.kThreadedDisplay) MsgReverseSortThreadPane(); else MsgSortByThread(); 
context: function HandleColumnClick(columnID){  var sortType = ConvertColumnIDToSortType(columnID);  // if sortType is 0, this is an unsupported sort type  // return, since we can't sort by that column.  if (sortType == 0)    return;  var dbview = GetDBView();  // if we're already threaded, clicking the thread icon does a reverse sort by id.  if (sortType == nsMsgViewSortType.byThread && (dbview.viewFlags & nsMsgViewFlagsType.kThreadedDisplay))    sortType = nsMsgViewSortType.byId;  if (sortType == nsMsgViewSortType.byThread && !dbview.supportsThreading)      return;  if (dbview.sortType == sortType) {    MsgReverseSortThreadPane();  }  else {    try {      var flatSort = pref.getBoolPref("mailnews.thread_pane_column_unthreads");       if (flatSort)        dbview.viewFlags &= ~nsMsgViewFlagsType.kThreadedDisplay;    }    catch (ex) {    }    MsgSortThreadPane(sortType);  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/a300aa5c817838eff65c632f6a4e4ad921154c97/threadPane.js/buggy/mailnews/base/resources/content/threadPane.js