Sort order within a group: "Wrong type argument: sequencep, :auto-ts"
novoid opened this issue · comments
Org mode version 9.6.12
org-super-agenda 1.4-pre
Latest NixOS
I'm trying to modify the sort order of items within a group. Currently, with my config my agenda is shown like that:
I'd prefer the sort order of those overdue items reversed: first, the scheduled for today items, then the 24x, then the 36x and so forth until the last one: 351x in this case.
For that, I actually only found one potential candidate :auto-ts
and so I played around by modifying this working line:
(:name "Started"
:and (:todo "STARTED" :not (:tag "someday") :not (:priority "C") :not (:priority "B") )
:order 10)
... to that:
(:name "Started"
:and (:todo "STARTED" :not (:tag "someday") :not (:priority "C") :not (:priority "B") )
:order 10
:auto-ts)
... or:
(:name "Started"
:and (:todo "STARTED" :not (:tag "someday") :not (:priority "C") :not (:priority "B") )
:order 10
:auto-ts "reverse")
Which causes in both cases:
if: Wrong type argument: sequencep, :auto-ts
What is my error here? I do seem to use it in a wrong way.
Hi Karl,
The auto selectors can't be combined with other selectors using :and
like that. The auto selectors make their own groups based solely on the values they find.
Note as well that org-super-agenda does not control the order in which items are sorted. The reverse
argument to :auto-ts
controls the order of the groups, not the items.
Okay, then I did get it totally wrong, as it seems. You may as well close the issue then.
When you say that org-super-agenda doesn't handle the order of items within a group: do you have a hint how I may influence that order with a different approach?
Thanks.
When you say that org-super-agenda doesn't handle the order of items within a group: do you have a hint how I may influence that order with a different approach?
If you're using org-agenda
commands, then with the standard Org Agenda sorting controls. If you're using org-ql
, with its :sort
argument.
I see. I really have to think of switching to org-ql based agenda. Thanks for clarification and throwing me in the right direction.
You're welcome.