3

Is there any option/extension in org mode to auto order certain lists?

For example: I would like to order by TODOs by priority or I would like to order by TODOs by state.

Hubidubi
  • 213
  • 1
  • 6
  • Here is a complex of example of how to programmatically sort (by multiple criteria) a primary `org-mode` buffer using `org-sort-entries`, and refiling/moving subtrees to the proper main headings based on various criteria using `org-archive-subtree`: http://stackoverflow.com/a/22232709/2112489 – lawlist Sep 08 '15 at 14:23

1 Answers1

2

You can use the function org-sort, which by default is mapped to C-c ^ in org-mode:

Sort same-level entries. When there is an active region, all entries in the region will be sorted. Otherwise the children of the current headline are sorted. The command prompts for the sorting method, which can be alphabetically, numerically, by time (first timestamp with active preferred, creation time, scheduled time, deadline time), by priority, by TODO keyword (in the sequence the keywords have been defined in the setup) or by the value of a property.

See this answer for multiple sorting levels: org: How to sort headings by TODO and then by priority?

nanny
  • 5,704
  • 18
  • 38