WIP: Temporarily disable sorter validation
This commit is contained in:
parent
46f523d94a
commit
3f4bd05a9f
1 changed files with 4 additions and 1 deletions
|
|
@ -417,7 +417,10 @@ each priority the newest items would appear first."
|
|||
(org-ql--sort-by items (-list sort)))
|
||||
;; Sort by user-given comparator.
|
||||
((pred functionp) (-sort sort items))
|
||||
(_ (user-error "SORT must be either nil, one or a list of the defined sorting methods (see documentation), or a comparison function of two arguments")))))
|
||||
;; FIXME: Test more carefully for sorters with arguments. In the meantime, just try to sort.
|
||||
(_ (org-ql--sort-by items (-list sort)))
|
||||
;; (_ (user-error "SORT must be either nil, one or a list of the defined sorting methods (see documentation), or a comparison function of two arguments"))
|
||||
)))
|
||||
|
||||
;;;###autoload
|
||||
(cl-defun org-ql-query (&key (select 'element-with-markers) from where narrow order-by)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue