From 3f4bd05a9f3794a5af16cfb69da1a24dc481dc6b Mon Sep 17 00:00:00 2001 From: Adam Porter Date: Sun, 20 Mar 2022 19:14:33 -0500 Subject: [PATCH] WIP: Temporarily disable sorter validation --- org-ql.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/org-ql.el b/org-ql.el index ffed560..9f42d06 100644 --- a/org-ql.el +++ b/org-ql.el @@ -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)