How can I configure Clerk to output the HTML in the reverse order of the forms given in the file?
Override the default notebook viewer to first reverse the blocks. This should do the trick (if I understand what you need to do)
(clerk/add-viewers! [(update v/notebook-viewer
:transform-fn comp #(update-in % [:nextjournal/value :blocks] reverse))])
thank you. I will try this