Hello,

I have noticed, that the sorting of custom agenda views, does not work as expected.

(setq org-agenda-custom-commands
      '(("n" "Agenda and all TODOs"
         ((tags-todo "LAST_REVIEW<>{.+}")
          (alltodo))
         )))

here, both blocks obviously use different sorting strategy, (alltodo) sorts the Prio #C to the bottom. On the other hand, (tags-todo) seems to reset the org-agenda-sorting-strategy, thus sorting Prio #C to the top.

(setq org-agenda-custom-commands
      '(("n" "Agenda and all TODOs"
((tags-todo "LAST_REVIEW<>{.+}" ((org-agenda-sorting-strategy '(priority-down))))
          (alltodo))
         )))

fixes that (at least for priority sorting).

My questions:
- Is it intended behavior for (tags-todo) to reset org-agenda-sorting-strategy? - What is the best way to reuse the value, besides copying the lengthy default value of org-agenda-sorting-strategy?

Best Thanks,
Florian

Reply via email to