From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nathan Neff Subject: Agenda search: setting sort-order Date: Wed, 30 May 2018 16:57:03 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000006aaa55056d736e66" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35173) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fO95g-0001FK-3e for emacs-orgmode@gnu.org; Wed, 30 May 2018 17:57:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fO95f-0005Zi-8q for emacs-orgmode@gnu.org; Wed, 30 May 2018 17:57:08 -0400 Received: from mail-io0-x236.google.com ([2607:f8b0:4001:c06::236]:39211) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fO95f-0005XH-4A for emacs-orgmode@gnu.org; Wed, 30 May 2018 17:57:07 -0400 Received: by mail-io0-x236.google.com with SMTP id 200-v6so22431713ioz.6 for ; Wed, 30 May 2018 14:57:05 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode --0000000000006aaa55056d736e66 Content-Type: text/plain; charset="UTF-8" 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 --0000000000006aaa55056d736e66 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi all,

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

(setq org-agenda-custom-commands
= =C2=A0 =C2=A0'(
=C2=A0 =C2=A0 =C2=A0("z" search &qu= ot;"=C2=A0
=C2=A0 =C2=A0 =C2=A0 =C2=A0((org-agenda-sorting-s= trategy '(timestamp-up))))))

And I have = an org-file with this data:

* TODO [#C] Test1= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 :foo:
<2018-04-24 Tu= e 19:30>
* TODO [#A] Test2 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 :foo:
<2018-05-24 Thu 19:30>
* TODO [#B] T= est3 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 :foo:
<2017-12-2= 4 Sun 23:33>

The data is not sorted accor= ding to timestamp.=C2=A0 I cannot seem to=C2=A0
get the data sort= ed 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.=C2=A0 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
<= /div> --0000000000006aaa55056d736e66--