I often have a list like this:
* Main heading ** TODO [#A] Make world better ** TODO [#B] Make Emacs better ** TODO [#B] Customize emacs ** DONE [#C] some task ** TODO [#A] Launch rocket to mars I would like to sort it according to the 'TODO' taskword first. Then the items inside the sorted TODO I would like to sort by priority. (it would then be nice to further sort by "Effort").
And I mean currently I can click on the main heading and sort the children already by either priority or by todo keyword, but not both.
Is sorting by both possible like sort-strategy?
Currently I have two headings
* Tasks ** TODO [#A] meh ** TODO [#B] meh2 * Completed. ** DONE [#B] meh3. But the problem with this approach is that I have to constantly shuffle tasks around when I complete them.
[EDIT]
This is kinda similar to this except that I couldn't make sense of his answer to transfer it to my needs?
org-sort-entrieswill either act on a main heading for all subheadings, or it can sort what is in a selected region. There are interactive options for you to choose from. You can programmatically use it also, and several sorts are possible -- I often use a, o, p, t (one after the next to accomplish 4 levels of sorting criteria). For example, you can sort everything first by alphabetic, then by todo keywords, then by priority, and then by time.org-refile-targetsto something like(setq org-refile-targets '((nil . (:maxlevel . 6)))). That will makeorg-modeshow headings up to a depth of 6 when refiling. You can check the documentation fororg-refile-targetsfor more information.