If the output is a block. That is, :find (pull ?b [*]) with ?b being a block. (for example [?b :block/page ?p] block ?b on page ?p) Then the journal-day is nested within the :block/page attribute. :result-transform then becomes: :result-transform (fn [result] (sort-by (fn [h] (get h [:block/page :block/journal-day])) result))
Only works if the block is on a journal page though.