I managed to create a query that sorts pages into created-at chronological order. Then I clicked on the “page” title in the results table which sorted the page titles alphabetically. Now I can’t go back to chronological order.
Is there a way to “reset” the result ordering back to chronological? I tried Refresh and Re-index but Logseq remembers that I chose to re-order by page title.
Here’s the query if it helps:
#+BEGIN_QUERY
{:title "YouTube Videos - Newest First"
:query [:find (pull ?p [*])
:where
[?p :block/name ?name]
[?p :block/tags ?t]
[?t :block/name "youtube video"]
[?p :block/created-at ?created]
]
:sort-by (fn [p] (get p :block/created-at))
:result-transform (fn [result] (reverse result))}
#+END_QUERY