org-agenda.el: Implement new sorting strategies
commit8517be79b5c1fe165d23ea65ad70a282e9c595bb
authorBastien Guerry <bzg@altern.org>
Tue, 5 Feb 2013 14:03:29 +0000 (5 15:03 +0100)
committerBastien Guerry <bzg@altern.org>
Wed, 6 Feb 2013 16:23:24 +0000 (6 17:23 +0100)
treeaa5ac9d7bae6890e2800631411d72516e0a2f58a
parentb91fe131ae744ed98a516c00229a81d6fe06d0f4
org-agenda.el: Implement new sorting strategies

* org-agenda.el (org-agenda-sorting-strategy): Document the
new sorting strategies.
(org-agenda-get-todos, org-agenda-get-timestamps)
(org-agenda-get-deadlines, org-agenda-get-scheduled): Add a
`ts-date' text property with scheduled, deadline or timetamp
date.
(org-cmp-ts): New function to compare timestamps.
(org-em): Add a docstring.
(org-entries-lessp): Use `org-cmp-ts' to compare timestamps.
Implement the following sorting strategies: timestamp-up/down,
scheduled-up/down, deadline-up/down, ts-up/down (for active
timestamps) and tsia-up/down (for inactive timestamps.)
lisp/org-agenda.el