rem:  var aFix = taskA.priority == 0 ? 10 : taskA.priority; var bFix = taskB.priority == 0 ? 10 : taskB.priority; return compareNumber(aFix, bFix) * modifier; 
add:  return compareNumber(taskA.priority, taskB.priority) * modifier; 
context: function compareTasks( taskA, taskB ){   var modifier = 1;   if (toDoTreeView.sortDirection == "descending")	{		modifier = -1;	}   switch(toDoTreeView.selectedColumn)   {      case "unifinder-todo-tree-col-priority":  // 0-9         //0=none, but 1=high.  Intuitively, none should be after low         var aFix = taskA.priority == 0 ? 10 : taskA.priority;         var bFix = taskB.priority == 0 ? 10 : taskB.priority;         return compareNumber(aFix, bFix) * modifier;         case "unifinder-todo-tree-col-title":         return compareString(taskA.title, taskB.title) * modifier;         case "unifinder-todo-tree-col-startdate":         return compareDate(taskA.entryDate, taskB.entryDate) * modifier;         case "unifinder-todo-tree-col-duedate":         return compareDate(taskA.dueDate, taskB.dueDate) * modifier;         case "unifinder-todo-tree-col-completed": // checkbox if date exists      case "unifinder-todo-tree-col-completeddate":         return compareDate(taskA.completedDate, taskB.completedDate) * modifier;            case "unifinder-todo-tree-col-percentcomplete":         return compareNumber(taskA.percentComplete, taskB.percentComplete) * modifier;         case "unifinder-todo-tree-col-categories":         return compareString(taskA.getProperty("CATEGORIES"), taskB.getProperty("CATEGORIES")) * modifier;      case "unifinder-todo-tree-col-location":         return compareString(taskA.getProperty("LOCATION"), taskB.getProperty("LOCATION")) * modifier;      case "unifinder-todo-tree-col-status":        return compareNumber(kStatusOrder.indexOf(taskA.status), kStatusOrder.indexOf(taskB.status)) * modifier;      case "unifinder-todo-tree-col-calendarname":        return compareString(taskA.calendar.name, taskB.calendar.name) * modifier;      default:         return 0;   }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10234/2b00d1fae9e95e35a9f774f5d6b0da8dfdd2f8c0/unifinderToDo.js/clean/calendar/resources/content/unifinderToDo.js