From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Modify sorting order of agenda (newest scheduled todos first)? Date: Sun, 17 Jun 2012 21:43:58 -0400 Message-ID: <87d34x2y3l.fsf@norang.ca> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39887) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SgR0f-0004fd-H4 for emacs-orgmode@gnu.org; Sun, 17 Jun 2012 21:44:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SgR0d-00019R-Jy for emacs-orgmode@gnu.org; Sun, 17 Jun 2012 21:44:05 -0400 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:16292) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SgR0d-000195-GE for emacs-orgmode@gnu.org; Sun, 17 Jun 2012 21:44:03 -0400 In-Reply-To: (M.'s message of "Sun, 17 Jun 2012 17:18:49 +0200") 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: M Cc: emacs-orgmode@gnu.org M writes: > Hi, > > I want to change the sorting order in the agenda (the standard seems to be > that overdue items are sorted by date so that the oldest ones are shown > first) to get the items listed in the following order: > > * as a first list: > todos with a deadline today or before today, > sorted by priority (descending), then sorted by due date, starting with > today and the oldest todo at the last position. > > * then a blank line with "a customized text" in it > > * then as a second list todos scheduled today or before today, > sorted by priority (descending) and then sorted by scheduled date, but the > newest ones first > > > e. g. > > DEADLINE TODO [#A] re-configure org-mode > DEADLINE TODO [#B] read org-mode manual > in -3d TODO [#B] do this > in -10d TODO [#B] do that > a customized text > SCHEDULED TODO [#A] learn LISP > SCHEDULED TODO [#B] understand Emacs > SCHED.1x TODO [#A] What I should have done yesterday > SCHED.1x TODO [#B] What I might have done yesterday > SCHED.2x TODO [#A] What I should have done the day before yesterday > ... > SCHED.20x TODO [#A] What I should have done 20 days ago > SCHED.30x TODO [#A] What I should have done a month ago > > IF there are examples for such a configuration of the agenda, please send me > a link. I did not find anything in the manual, but maybe I've overlooked it. > > Kind regars > > Martin Hi Martin, I'm not sure if the "a customized text" is doable but I control the order of everything displayed on my agenda with a bunch of custom sorting functions which are described here: http://doc.norang.ca/org-mode.html#AgendaViewTweaks HTH. Regards, Bernt