When I pass a function symbol as `sort' argument to org-ql-select, I get error "SORT must be either nil, or one or a list of the defined sorting methods (see documentation)". I think this is because of the line
(setq sort (-list sort))
that changes the type of `sort' from a function symbol to a list.