emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Agenda search: setting sort-order


From: Nathan Neff
Subject: [O] Agenda search: setting sort-order
Date: Wed, 30 May 2018 16:57:03 -0500

Hi all,

I'm using org-mode version 9.1.13 from elpa, and
have a custom agenda command:


(setq org-agenda-custom-commands
   '(
     ("z" search "" 
       ((org-agenda-sorting-strategy '(timestamp-up))))))

And I have an org-file with this data:

* TODO [#C] Test1                                                       :foo:
<2018-04-24 Tue 19:30>
* TODO [#A] Test2                                                       :foo:
<2018-05-24 Thu 19:30>
* TODO [#B] Test3                                                       :foo:
<2017-12-24 Sun 23:33>

The data is not sorted according to timestamp.  I cannot seem to 
get the data sorted in any fashion when using the "search" agenda mode.

However, if I change "search" to "tags" and search for the "foo" tag, then
it appears that the sorting works.  I've tested it with priority and timestamp
using the above data and it sorts the items correctly.

Why is my "search" agenda command ignoring the org-agenda-sorting-strategy?

Thanks,
--Nate

reply via email to

[Prev in Thread] Current Thread [Next in Thread]