rem: sortKey = nsMsgViewSortType.byAttachments; break; 
add: sortKey = nsMsgViewSortType.byAttachments; break; 
context: function ConvertColumnIDToSortType(columnID){  var sortKey;  switch (columnID) {    case "dateCol":      sortKey = nsMsgViewSortType.byDate;      break;    case "senderCol":    	sortKey = nsMsgViewSortType.byAuthor;      break;    case "recipientCol":    	sortKey = nsMsgViewSortType.byRecipient;      break;    case "subjectCol":      sortKey = nsMsgViewSortType.bySubject;      break;    case "locationCol":      sortKey = nsMsgViewSortType.byLocation;      break;    case "accountCol":      sortKey = nsMsgViewSortType.byAccount;      break;    case "unreadButtonColHeader":      sortKey = nsMsgViewSortType.byUnread;      break;    case "statusCol":      sortKey = nsMsgViewSortType.byStatus;      break;    case "sizeCol":      sortKey = nsMsgViewSortType.bySize;      break;    case "priorityCol":      sortKey = nsMsgViewSortType.byPriority;      break;    case "flaggedCol":      sortKey = nsMsgViewSortType.byFlagged;      break;    case "threadCol":      sortKey = nsMsgViewSortType.byThread;      break;    case "tagsCol":      sortKey = nsMsgViewSortType.byTags;      break;    case "junkStatusCol":      sortKey = nsMsgViewSortType.byJunkStatus;      break;    case "idCol":      sortKey = nsMsgViewSortType.byId;      break;    case "attachmentCol":	    sortKey = nsMsgViewSortType.byAttachments;	    break;    default:            //no predefined column handler - lets check if there is a custom column handler      try {        //try to grab the columnHandler (an error is thrown if it does not exist)        columnHandler = gDBView.getColumnHandler(columnID);        //it exists - save this column ID in the customSortCol property of dbFolderInfo        //for later use (see nsIMsgDBView.cpp)        gDBView.db.dBFolderInfo.setProperty('customSortCol', columnID);                sortKey = nsMsgViewSortType.byCustom;      }      catch(err)      {        dump("unsupported sort column: " + columnID + " - no custom handler installed. (Error was: " + err + ")\n");        sortKey = 0;      }      break;  }  return sortKey;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/b63a5b72361765e9c991347479ce265f17a15db6/commandglue.js/buggy/mail/base/content/commandglue.js