fix(lisp): Sort tasks in DESCENDING order

This commit is contained in:
Vincent Ambo 2017-12-20 19:36:05 +01:00
parent 26f365271e
commit ce036d7d15

View file

@ -62,7 +62,7 @@ maximum interval."
(defun sort-tasks (tasks)
"Sorts TASKS in descending order by number of days remaining."
(sort (copy-list tasks)
(lambda (t1 t2) (> (days-remaining t1)
(lambda (t1 t2) (< (days-remaining t1)
(days-remaining t2)))))
(defun complete-task (name &optional at)