From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Filippo A. Salustri" Subject: Re: help with sorting agenda views Date: Sun, 20 Mar 2011 17:07:11 -0400 Message-ID: References: <87bp15egd3.fsf@norang.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=54054 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q1PqD-0000SG-SN for emacs-orgmode@gnu.org; Sun, 20 Mar 2011 17:07:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q1PqC-0000x4-FZ for emacs-orgmode@gnu.org; Sun, 20 Mar 2011 17:07:13 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:60056) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q1PqC-0000x0-8v for emacs-orgmode@gnu.org; Sun, 20 Mar 2011 17:07:12 -0400 Received: by wyf19 with SMTP id 19so5835451wyf.0 for ; Sun, 20 Mar 2011 14:07:11 -0700 (PDT) In-Reply-To: <87bp15egd3.fsf@norang.ca> 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: emacs-orgmode@gnu.org Bernt, Thanks. I've been reading your page on org; I just haven't gotten to section 16 yet. :) Cheers. Fil On 20 March 2011 15:34, Bernt Hansen wrote: > "Filippo A. Salustri" writes: > >> Hi, >> I'm getting confused with sorting agenda views. =A0Hopefully someone can >> help me out. >> >> I have a custom agenda view that, today, looks like this: >> >> Friday =A0 =A0 18 March 2011 >> =A0 UTMIE: =A0 =A0 =A0In =A013 d.: =A0TODO [#A] Annual Report >> =A0 Matthew: =A0 =A0In =A0-1 d.: =A0TODO Edit Matthew's thesis. >> =A0 iMac: =A0 =A0 =A0 Deadline: =A0 TODO Archive email > Thunderbird >> =A0 iMe: =A0 =A0 =A0 =A0In =A0 1 d.: =A0REVIEW Tag my zotero library >> =A0 8101: =A0 =A0 =A0 In =A0 5 d.: =A0REVIEW 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" >> =A0 =A0 =A0 =A0((agenda "" ((org-agenda-sorting-strategy >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(quote ((agenda time-up prior= ity-down)))))) >> =A0 =A0 =A0 =A0 (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: >> >> =A0'(org-agenda-sorting-strategy >> =A0 =A0(quote ((agenda time-up priority-down) >> =A0 =A0 =A0 =A0 =A0(todo priority-down) >> =A0 =A0 =A0 =A0 =A0))) >> >> 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. =A0You should be able to adapt this for your > needs. =A0Details are at http://doc.norang.ca/org-mode.html#sec-16_3_5 > > Regards, > -- > Bernt > --=20 Filippo A. Salustri, Ph.D., P.Eng. Mechanical and Industrial Engineering Ryerson University 350 Victoria St, Toronto, ON M5B 2K3, Canada Tel: 416/979-5000 ext 7749 Fax: 416/979-5265 Email: salustri@ryerson.ca http://deseng.ryerson.ca/~fil/