I managed to sort journals by date in the reverse order, but this could not work with the pretty :group-by-page? true option. Is it possible sort journals by date (oldest first) but still view the results grouped by page?
No, this is unfortunately not possible.
Also small correction for your result-transform: :result-transform (fn [result] (reverse (sort-by (fn [h] (get-in h [:block/page :block/journal-day])) result)))
I don’t know exactly what you wish to achieve. Maybe there’s a different way to get what you wish?
Thanks for pointing it out!
I was trying to review my week in chronological order. Maybe if my blocks are better organised I would not need the group-by-page view anymore.
I ended up including a recent journals query in my Contents page and clicking through them to review the week: