From 9ada92a22514b27dd828a887b2f43b2cd7546cc4 Mon Sep 17 00:00:00 2001 From: Patrick Winter Date: Fri, 6 Sep 2019 21:53:51 +0200 Subject: [PATCH] Fix urgency sort order --- taskwarrior.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/taskwarrior.el b/taskwarrior.el index c061186..e63354b 100644 --- a/taskwarrior.el +++ b/taskwarrior.el @@ -343,7 +343,9 @@ (defun taskwarrior--urgency-predicate (A B) (let ((a (aref (cadr A) 1)) (b (aref (cadr B) 1))) - (string> a b))) + (> + (string-to-number a) + (string-to-number b)))) ;; Setup a major mode for taskwarrior ;;;###autoload