From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: help with sorting agenda views Date: Sun, 20 Mar 2011 15:34:00 -0400 Message-ID: <87bp15egd3.fsf@norang.ca> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=39878 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q1OO5-000245-G9 for emacs-orgmode@gnu.org; Sun, 20 Mar 2011 15:34:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q1OO4-0002vd-6i for emacs-orgmode@gnu.org; Sun, 20 Mar 2011 15:34:05 -0400 Received: from mho-01-ewr.mailhop.org ([204.13.248.71]:56126) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q1OO4-0002vY-1N for emacs-orgmode@gnu.org; Sun, 20 Mar 2011 15:34:04 -0400 In-Reply-To: (Filippo A. Salustri's message of "Fri, 18 Mar 2011 14:41:00 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Filippo A. Salustri" Cc: emacs-orgmode@gnu.org "Filippo A. Salustri" writes: > Hi, > I'm getting confused with sorting agenda views. =C2=A0Hopefully someone c= an > help me out. > > I have a custom agenda view that, today, looks like this: > > Friday 18 March 2011 > UTMIE: In 13 d.: TODO [#A] Annual Report > Matthew: In -1 d.: TODO Edit Matthew's thesis. > iMac: Deadline: TODO Archive email > Thunderbird > iMe: In 1 d.: REVIEW Tag my zotero library > 8101: In 5 d.: REVIEW Grade Assignment 4 > > The second item is late. > I wish I could get late items to show up first, before all else. > At the moment, the custom agenda command includes this bit: > > ("0" "Show ACTIVE/REVIEW/BUG tasks" > ((agenda "" ((org-agenda-sorting-strategy > (quote ((agenda time-up priority-down)))))) > (todo "REVIEW|ACTIVE|WIP"))) > > I thought that doing this would make sure late items came first. > In my .emacs, I also have this bit in custom-set-variables: > > '(org-agenda-sorting-strategy > (quote ((agenda time-up priority-down) > (todo priority-down) > ))) > > I checked the doc and google, and I can't find anything helpful. > > Can someone advise me? Hi Filippo, I have a custom agenda sorting function that orders items in the agenda specifically the way I want. You should be able to adapt this for your needs. Details are at http://doc.norang.ca/org-mode.html#sec-16_3_5 Regards, --=20 Bernt