I can sort today's todos by priority using
(org-ql-search (org-agenda-files) '(ts-active :on today) :sort 'priority) ;; By the way, this lists the todo's that are DONE. I hope to get rid of them as well. Sorry for the digression.
How about sorting by effort? It's not supported by default, so a customized function is needed.