Default sorting of All Pages?

Is it possible to specify that All Pages should be sorted alphabetically by default? Or to make a chosen sort order “stick” for the remainder of a session?

As I see, query tables remember chosen sorting. So you can list all pages with such query:

{:title “All pages”
:query [:find (pull ?b [*])
[?b :block/name _]

And then sort table by page name.
Also, it is possible to sort query results with sort-by function, but I still do not understand how it works.

1 Like

Thank you, this is interesting, and something I could refine to list only pages within a project. On line #2 of your snippet : I had to replace curly quotes with straight ones.

1 Like