From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Custom agenda 'tags-todo' sorting by scheduled data note working Date: Wed, 10 Feb 2016 22:45:42 -0500 Message-ID: <87pow3lxjt.fsf@pierrot.dokosmarshall.org> References: <90994b100f694c8709cd89223a086425@posteo.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44580) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTiCe-0002q6-Jn for emacs-orgmode@gnu.org; Wed, 10 Feb 2016 22:46:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aTiCb-00041c-85 for emacs-orgmode@gnu.org; Wed, 10 Feb 2016 22:46:00 -0500 Received: from plane.gmane.org ([80.91.229.3]:38354) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTiCb-00040W-0a for emacs-orgmode@gnu.org; Wed, 10 Feb 2016 22:45:57 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aTiCU-0005hS-8M for emacs-orgmode@gnu.org; Thu, 11 Feb 2016 04:45:50 +0100 Received: from pool-74-104-158-160.bstnma.fios.verizon.net ([74.104.158.160]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 11 Feb 2016 04:45:50 +0100 Received: from ndokos by pool-74-104-158-160.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 11 Feb 2016 04:45:50 +0100 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Gabriel Duven writes: > Hi guys, > > I created a custom agenda view with tags-todo, which I like to sort by > scheduled date. > > (add-to-list 'org-agenda-custom-commands > '("u" "Next actions" tags-todo "+PRIORITY=\"A\"" > ((org-agenda-overriding-header "Critical") > (org-agenda-prefix-format " %-5:c") > (org-agenda-sorting-strategy '(scheduled-down)) > (org-agenda-todo-ignore-scheduled 'future) > (org-agenda-tags-todo-honor-ignore-options t))) > ) > > But sorting comes out wrong: It's not sorted by the scheduled date. In > fact, it's not sorted at all, but seems to keep order of > org-agenda-files. > FWIW, it seems to work fine here: I get all the #A items, sorted by scheduled date, latest one first. Not sure why it's not working for you. -- Nick