Add/Change: reverse sorter, and reverse sorting order

This is a breaking change of sorts in that searches using multiple
sorting methods will have to have the order of the sorters reversed to
get the same result.  Unfortunate, but I think it's worth it in the
end, and this is pre-1.0, anyway.

Fixes #143.
This commit is contained in:
Adam Porter 2021-06-17 18:59:40 -05:00
parent 8342656b2d
commit 94f9e6f303
5 changed files with 67 additions and 44 deletions

View file

@ -35,7 +35,7 @@ Show an agenda-like view, similar to a "traditional" Org Agenda with Log Mode tu
(scheduled :to today)
(ts-active :on today)))
(closed :on today))
:sort '(date priority todo))
:sort '(todo priority date))
#+END_SRC
Another example, showing grouping with [[https://github.com/alphapapa/org-super-agenda][org-super-agenda]]:
@ -76,7 +76,7 @@ Show entries that have any timestamp within the past week. Group by date using
(org-ql-search (org-agenda-files)
'(ts :from -7 :to today)
:title "Recent Items"
:sort '(date priority todo)
:sort '(todo priority date)
:super-groups '((:auto-ts t)))
#+END_SRC