From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Lundin Subject: Re: Newbie question on sorting TODO items Date: Sat, 04 Jul 2009 14:19:14 -0500 Message-ID: <87y6r4jlxp.fsf@fastmail.fm> References: <2212CE18-A3F3-4B36-8734-81176640B286@tsdye.com> 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 1MNAjZ-0002b3-3D for emacs-orgmode@gnu.org; Sat, 04 Jul 2009 15:17:13 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MNAjS-0002ai-Rg for emacs-orgmode@gnu.org; Sat, 04 Jul 2009 15:17:11 -0400 Received: from [199.232.76.173] (port=59936 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MNAjS-0002af-P2 for emacs-orgmode@gnu.org; Sat, 04 Jul 2009 15:17:06 -0400 Received: from out2.smtp.messagingengine.com ([66.111.4.26]:59933) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MNAjS-0000ua-Hv for emacs-orgmode@gnu.org; Sat, 04 Jul 2009 15:17:06 -0400 In-Reply-To: <2212CE18-A3F3-4B36-8734-81176640B286@tsdye.com> (Thomas S. Dye's message of "Sat, 4 Jul 2009 08:00:03 -1000") 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: "Thomas S. Dye" Cc: emacs-orgmode@gnu.org "Thomas S. Dye" writes: > Aloha all, > > An article from last year "[PATCH 4/5] Add a new sort option, which > sorts items by todo keyword" describes what I'd like to do in my .org > files, i.e., sort TODO headlines by the order of the TODO state in the > TODO sequence. Given: > #+SEQ_TODO: TODO(t) STARTED(s) WAITING(w@/!) APPT(a) DELEGATED(l@) | > DONE(d!) CANCELLED(c@) DEFERRED(f@) > I'd like to see DONE, CANCELLED, and DEFERRED down at the bottom and > TODO, STARTED, WAITING, APPT, and DELEGATED up at the top in sorted > order. > > Is this possible? I believe you are looking for org-sort. If you type C-c ^ o org-mode will sort your headlines by todos (in the order in which they appear in your settings). If you are interested in sorting by TODO in the agenda, you can add "todo-state-up" to your org-agenda-sorting-strategy. Best, Matt