From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: Re: Newbie question on sorting TODO items Date: Sat, 4 Jul 2009 11:14:47 -1000 Message-ID: <725FF8DB-C174-41A4-AFC8-9D21334EAF23@tsdye.com> References: <2212CE18-A3F3-4B36-8734-81176640B286@tsdye.com> <87y6r4jlxp.fsf@fastmail.fm> Mime-Version: 1.0 (Apple Message framework v935.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MNCZU-0005dx-Br for emacs-orgmode@gnu.org; Sat, 04 Jul 2009 17:14:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MNCZP-0005XU-7Z for emacs-orgmode@gnu.org; Sat, 04 Jul 2009 17:14:55 -0400 Received: from [199.232.76.173] (port=40689 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MNCZP-0005XM-1q for emacs-orgmode@gnu.org; Sat, 04 Jul 2009 17:14:51 -0400 Received: from outbound-mail-04.bluehost.com ([69.89.21.14]:40106) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1MNCZO-00084p-KQ for emacs-orgmode@gnu.org; Sat, 04 Jul 2009 17:14:50 -0400 In-Reply-To: <87y6r4jlxp.fsf@fastmail.fm> 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: Matthew Lundin Cc: emacs-orgmode@gnu.org Aloha Matt, Thanks for taking the time to look at this. With C-c ^ o, I get "Invalid sorting type `o'". I'm using org-mode 5.23a with Aquamacs Emacs 1.8. Tom On Jul 4, 2009, at 9:19 AM, Matthew Lundin wrote: > "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