rem: return compareDate(eventA.start, eventB.start) * modifier; 
add: var msNextStartA = msNextOrPreviousRecurrenceStart(eventA); var msNextStartB = msNextOrPreviousRecurrenceStart(eventB); return compareMSTime(msNextStartA, msNextStartB) * modifier; 
context: function compareEvents( eventA, eventB ){   var modifier = 1;   if (treeView.sortDirection == "descending")	{		modifier = -1;	}      switch(treeView.selectedColumn)   {      case "unifinder-search-results-tree-col-title":         return compareString(eventA.title,  eventB.title) * modifier;            case "unifinder-search-results-tree-col-startdate":         return compareDate(eventA.start, eventB.start) * modifier;         case "unifinder-search-results-tree-col-enddate":         return compareDate(eventA.end, eventB.end) * modifier;         case "unifinder-search-results-tree-col-categories":         return compareString(eventA.categories, eventB.categories) * modifier;         case "unifinder-search-results-tree-col-location":         return compareString(eventA.location, eventB.location) * modifier;         case "unifinder-search-results-tree-col-status":         return compareString(eventA.status, eventB.status) * modifier;      default:         return 0;   }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/b0aa8f6473d8e0afe5843b1970bd1b645cfdb6fc/unifinder.js/buggy/calendar/resources/content/unifinder.js