emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Matthew Lundin <mdl@imapmail.org>
To: "Thomas S. Dye" <tsd@tsdye.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Newbie question on sorting TODO items
Date: Sat, 04 Jul 2009 14:19:14 -0500	[thread overview]
Message-ID: <87y6r4jlxp.fsf@fastmail.fm> (raw)
In-Reply-To: <2212CE18-A3F3-4B36-8734-81176640B286@tsdye.com> (Thomas S. Dye's message of "Sat, 4 Jul 2009 08:00:03 -1000")

"Thomas S. Dye" <tsd@tsdye.com> 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

  reply	other threads:[~2009-07-04 19:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-04 18:00 Newbie question on sorting TODO items Thomas S. Dye
2009-07-04 19:19 ` Matthew Lundin [this message]
2009-07-04 21:14   ` Thomas S. Dye
2009-07-05 11:34     ` Matthew Lundin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y6r4jlxp.fsf@fastmail.fm \
    --to=mdl@imapmail.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=tsd@tsdye.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).