rem: dump("unsupported sort column: " + columnID + "\n"); sortKey = 0; 
add:   try {  columnHandler = gDBView.getColumnHandler(columnID);    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; } 
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:      dump("unsupported sort column: " + columnID + "\n");      sortKey = 0;      break;  }  return sortKey;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/2f35dceae7311de862652444626569170d418ecb/commandglue.js/buggy/mail/base/content/commandglue.js