Anyone know why code below lists timed task in revers chronological order?
Did something change in planner-muse? or should I look for some other configuration changes?
;; planner task sort
(defun sacha/planner-sort-tasks-basic ()
"Sort tasks by time (@1030, etc), status (_P>XC) and priority (ABC)."
(let* ((info (planner-current-task-info))
(status (aref (planner-task-status info) 0)))
(concat
;; time
(or (and (string-match "@[0-9][0-9]:[0-9][0-9]" (planner-task-description info))
(match-string 0 (planner-task-description info)))
"@99:99")
;; status
(cond
((eq status ?o) "1")
((eq status ?P) "2")
((eq status ?>) "3")
((eq status ?X) "4")
((eq status ?C) "5")
(t "9"))
(planner-task-priority info))))