rem: case nsMsgViewSortType.byAttachments: columnID = "attachmentCol"; break; 
add: case nsMsgViewSortType.byAttachments: columnID = "attachmentCol"; break; 
context: function ConvertSortTypeToColumnID(sortKey){  var columnID;  // hack to turn this into an integer, if it was a string  // it would be a string if it came from localStore.rdf  sortKey = sortKey - 0;  switch (sortKey) {    case nsMsgViewSortType.byDate:      columnID = "dateCol";      break;    case nsMsgViewSortType.byAuthor:      columnID = "senderCol";      break;    case nsMsgViewSortType.byRecipient:      columnID = "recipientCol";      break;    case nsMsgViewSortType.bySubject:      columnID = "subjectCol";      break;    case nsMsgViewSortType.byLocation:      columnID = "locationCol";      break;    case nsMsgViewSortType.byAccount:      columnID = "accountCol";      break;    case nsMsgViewSortType.byUnread:      columnID = "unreadButtonColHeader";      break;    case nsMsgViewSortType.byStatus:      columnID = "statusCol";      break;    case nsMsgViewSortType.byTags:      columnID = "tagsCol";      break;    case nsMsgViewSortType.bySize:      columnID = "sizeCol";      break;    case nsMsgViewSortType.byPriority:      columnID = "priorityCol";      break;    case nsMsgViewSortType.byFlagged:      columnID = "flaggedCol";      break;    case nsMsgViewSortType.byThread:      columnID = "threadCol";      break;    case nsMsgViewSortType.byId:      columnID = "idCol";      break;    case nsMsgViewSortType.byJunkStatus:      columnID = "junkStatusCol";      break;	  case nsMsgViewSortType.byAttachments:	    columnID = "attachmentCol";	    break;    case nsMsgViewSortType.byCustom:      //TODO: either change try() catch to if (property exists) or restore the getColumnHandler() check      try //getColumnHandler throws an errror when the ID is not handled      {        columnID = gDBView.db.dBFolderInfo.getProperty('customSortCol');      }      catch (err) { //error - means no handler        dump("ConvertSortTypeToColumnID: custom sort key but no handler for column '" + columnID + "'\n");        columnID = "dateCol";      }      break;    default:      dump("unsupported sort key: " + sortKey + "\n");      columnID = "dateCol";      break;  }  return columnID;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/b63a5b72361765e9c991347479ce265f17a15db6/commandglue.js/buggy/mail/base/content/commandglue.js