From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jacek Generowicz Subject: Re: Sort TODOs in agenda day Date: Tue, 31 Jan 2012 09:03:08 +0100 Message-ID: <4d473cc8-5801-4545-8b93-2b72157878de@CERNFE22.cern.ch> References: <9d834356-f72b-440a-91af-fee555f76c32@CERNFE22.cern.ch> <87mx94lnjy.fsf@norang.ca> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="US-ASCII" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:38288) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rs8gP-0001IY-G8 for emacs-orgmode@gnu.org; Tue, 31 Jan 2012 03:03:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rs8gJ-0006zL-8y for emacs-orgmode@gnu.org; Tue, 31 Jan 2012 03:03:17 -0500 Received: from cernmx31.cern.ch ([137.138.144.179]:39775) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rs8gI-0006yv-TJ for emacs-orgmode@gnu.org; Tue, 31 Jan 2012 03:03:11 -0500 In-Reply-To: <87mx94lnjy.fsf@norang.ca> 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: Bernt Hansen Cc: emacs-orgmode@gnu.org 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.