alphapapa / org-ql

A searching tool for Org-mode, including custom query languages, commands, saved searches and agenda-like views, etc.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

User-defined sorting signals an error in org-ql-select

mz-pdm opened this issue · comments

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.

Thanks for reporting that. It should be fixed now.

It also gave me the idea to add a random built-in sorter, which I just did.