Skip to content
This repository has been archived by the owner on Dec 17, 2017. It is now read-only.

Commit

Permalink
Sort tasks by priority first, by due date second; matches RTM's behav…
Browse files Browse the repository at this point in the history
…iour
  • Loading branch information
mbunkus committed Apr 8, 2011
1 parent 1025b8f commit 3d2e80a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lisp/simple-rtm.el
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,8 @@
(t2-prio (xml-get-attribute t2-task 'priority))
(t1-name (downcase (getf t1 :name)))
(t2-name (downcase (getf t2 :name))))
(= -1 (or (simple-rtm--cmp t1-due t2-due)
(simple-rtm--cmp t1-prio t2-prio)
(= -1 (or (simple-rtm--cmp t1-prio t2-prio)
(simple-rtm--cmp t1-due t2-due)
(simple-rtm--cmp t1-name t2-name)
0))))

Expand Down

0 comments on commit 3d2e80a

Please sign in to comment.