rem: var colID = ConvertSortTypeToColumnID(sortType); 
add: var colID = ConvertSortTypeToColumnID(gCurSortType); 
context: function CreateDBView(msgFolder, viewType, viewFlags, sortType, sortOrder){  // call the inner create method  CreateBareDBView(msgFolder, viewType, viewFlags, sortType, sortOrder);  // now do outliner specific work  // based on the collapsed state of the thread pane/message pane splitter,  // supress message display if appropriate.  var collapsed = IsThreadAndMessagePaneSplitterCollapsed();  if (collapsed)    gDBView.supressMsgDisplay = true;  else    gDBView.supressMsgDisplay = false;  var colID = ConvertSortTypeToColumnID(sortType);  if (colID) {    var column = document.getElementById(colID);    gDBView.sortedColumn = column;  }  ShowAppropriateColumns();  PersistViewAttributesOnFolder();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/140940d7ead52b6b9743db1e84a8f8892299eac5/commandglue.js/buggy/mailnews/base/resources/content/commandglue.js