fix(lisp): Sort tasks in DESCENDING order
This commit is contained in:
parent
26f365271e
commit
ce036d7d15
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue