From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Lundin Subject: Re: Sorting TODOs with time-up Date: Mon, 30 Mar 2009 08:41:20 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LoHk2-0006lo-4l for emacs-orgmode@gnu.org; Mon, 30 Mar 2009 09:41:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LoHjw-0006lF-4P for emacs-orgmode@gnu.org; Mon, 30 Mar 2009 09:41:28 -0400 Received: from [199.232.76.173] (port=51229 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LoHjv-0006lC-Ql for emacs-orgmode@gnu.org; Mon, 30 Mar 2009 09:41:23 -0400 Received: from out4.smtp.messagingengine.com ([66.111.4.28]:36784) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LoHjv-0006lK-Gr for emacs-orgmode@gnu.org; Mon, 30 Mar 2009 09:41:23 -0400 Received: from Macintosh-5.local (pool-96-248-128-134.sbndin.dsl-w.verizon.net [96.248.128.134]) by mail.messagingengine.com (Postfix) with ESMTPSA id 2964D30FE1 for ; Mon, 30 Mar 2009 09:41:22 -0400 (EDT) In-Reply-To: (David Engster's message of "Mon\, 30 Mar 2009 14\:57\:21 +0200") 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 David Engster writes: > > I guess this should be simple but somehow it's not working for me. I > want to generate a todo list which is sorted according to the scheduled > date. Consider the following test.org file: > > ** TODO: first SCHEDULED: <2009-04-01 Wed> > ** TODO: second SCHEDULED: <2009-04-23 Thu> > ** TODO: third SCHEDULED: <2009-04-16 Thu> > > This minimal setup > > (setq org-agenda-files '("~/orgtest/test.org")) > (setq org-agenda-sorting-strategy > '((agenda time-up priority-down category-keep) > (todo time-up priority-down category-keep) > (tags priority-down category-keep) > (search category-keep))) > > should sort TODOs according to time, right? But when I do > As far as I understand it, time-up sorts only by time of day in the agenda view. I.e., it will place items that have been scheduled for a particular hour at the top of the agenda. Here's some info from the docstring: ,---- | time-up Put entries with time-of-day indications first, early first | time-down Put entries with time-of-day indications first, late first | | Pull out all entries having a specified time of day and sort them, | in order to make a time schedule for the current day the first thing in the | agenda listing for the day. `---- There is the possibility of using a user-defined function. Perhaps you could use that to sort by date. ,---- | user-defined-up Sort according to `org-agenda-cmp-user-defined', high last. | user-defined-down Sort according to `org-agenda-cmp-user-defined', high first. `---- Best, Matt