From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastien Vauban Subject: Re: [ Bug] tsia-{up, down} sorting strategy not working for tags search agendas Date: Tue, 23 Sep 2014 09:56:48 +0200 Message-ID: <86oau6kbwf.fsf@somewhere.org> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Subhan Michael Tindall wrote: > I have the following agendas (among others) defined: > ("x" "Last worked" ((alltodo "" ( (org-agenda-sticky nil) > (org-agenda-sorting-strategy (quote (tsia-up todo-state-down))))))) > ("y" "Last worked2" ((tags "LastWorked={.+}" ( > (org-agenda-sticky nil) > (org-agenda-sorting-strategy (quote (tsia-up todo-state-down))))))) > > I have a property defined in headlines that have been worked on: > :PROPERTIES: > :LastWorked: [2014-09-02 Tue 16:02] > :END: > > TODOs etc that have not been worked yet don't have this property. > > The top search ("x") creates an agenda with items with a LastWorked property > sorted with the least recent first, down to most recent, followed by any items > with the LastWorked property unset sorted by todo-state. > > The bottom search ("y") creates an agenda with only items with LastWorked > property set (which I want) but completely ignores the tsia-up sorting strategy > and sorts only by todo-state. > > I have confirmed that org-agenda-sorting-strategy-selected is correct in both cases. > The only difference is the agenda type (tags vs alltodo) > > Any ideas where to look for this ? I guess it's directly linked to a problem I reported last September. This is indeed annoying... See issue #29 on http://orgmode.org/worg/org-issues.html (and see the pointed thread). Best regards, Seb -- Sebastien Vauban