From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Sort TODOs in agenda day Date: Tue, 31 Jan 2012 12:39:48 -0500 Message-ID: <8762frkbyz.fsf@norang.ca> References: <9d834356-f72b-440a-91af-fee555f76c32@CERNFE22.cern.ch> <87mx94lnjy.fsf@norang.ca> <4d473cc8-5801-4545-8b93-2b72157878de@CERNFE22.cern.ch> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:46601) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RsHgU-0000B8-KS for emacs-orgmode@gnu.org; Tue, 31 Jan 2012 12:40:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RsHgO-0000jY-I3 for emacs-orgmode@gnu.org; Tue, 31 Jan 2012 12:39:58 -0500 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:38604) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RsHgO-0000j6-Ck for emacs-orgmode@gnu.org; Tue, 31 Jan 2012 12:39:52 -0500 In-Reply-To: <4d473cc8-5801-4545-8b93-2b72157878de@CERNFE22.cern.ch> (Jacek Generowicz's message of "Tue, 31 Jan 2012 09:03:08 +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: Jacek Generowicz Cc: emacs-orgmode@gnu.org Jacek Generowicz writes: > At Mon, 30 Jan 2012 19:32:01 -0500, > Bernt Hansen wrote: >> >> Jacek Generowicz writes: >> >> > Hello, >> > >> > In the standard agenda view for any single day, apponintments appear >> > in chronolological order before any TODOs which seem to be ordered >> > accoriding to the order in which they appear in their org files. >> > >> > How could I get the TODOs to be sorted by something like effort-up >> > without breaking the chronological sort of the appointments? >> >> Look at the variable org-agenda-sorting-strategy. > > Yes, but how do I instruct it to apply one strategy (time-up) to those > items which appear in the time-grid portion of the day's display (the > appointments), and a different one to the other entries (scheduled > TODOs, deadlines)? Specifically, by adding a command to > > org-agenda-custom-commands > > which contains something like > > ((agenda "" > ((org-agenda-sorting-strategy '(effort-up))))) > > messes up the time ordering of appointments for that command. I have a fairly complicated sorting function which gets the order of items exactly how I want to see them on the agenda. The gory details are here: http://doc.norang.ca/org-mode.html#AgendaViewTweaks HTH, Bernt