That is, how do I change this task list
* TODO A
* DONE B
* TODO C
* DONE D
* TODO E
into the following one?
* DONE B
* DONE D
* TODO A
* TODO C
* TODO E
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.
Sign up to join this communityThat is, how do I change this task list
* TODO A
* DONE B
* TODO C
* DONE D
* TODO E
into the following one?
* DONE B
* DONE D
* TODO A
* TODO C
* TODO E
Use org-sort
to sort by todo state, or any thing else. By default it's bound to C-c ^
; it will ask you what you want to sort by. Choose O
to sort by todo state, reversed (o
will put TODO
at the top).
C-c ^
on selected headings. – wvxvw Jan 31 '16 at 9:16org-sort-entries
-- erikstokes has already cited the interactive command that usesorg-sort-entries
. It operates on regions or on everything under a main heading. It also takes an optional custom function for special sorts. – lawlist Jan 31 '16 at 18:03