rem: var viewFlags = dbview.viewFlags; dbview.viewFlags &= ~ nsMsgViewFlagsType.kGroupBySort; if (viewFlags & nsMsgViewFlagsType.kGroupBySort) 
add:  if (dbview.viewFlags & nsMsgViewFlagsType.kGroupBySort) 
context: function MsgSortThreadPane(sortType){  var dbview = GetDBView();  var viewFlags = dbview.viewFlags;  dbview.viewFlags &= ~ nsMsgViewFlagsType.kGroupBySort;  if (viewFlags & nsMsgViewFlagsType.kGroupBySort)  {    dbview.sortType = sortType; // save sort in current view    viewDebug("switching view to all msgs\n");    return SwitchView("cmd_viewAllMsgs");  }  dbview.sort(sortType, nsMsgViewSortOrder.ascending);  UpdateSortIndicators(sortType, nsMsgViewSortOrder.ascending);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/a185c3eccf4285ad9d3df8a0518794f4e362dc2b/threadPane.js/buggy/mailnews/base/resources/content/threadPane.js