diff --git a/org-ql.el b/org-ql.el index 90586c3..6945889 100644 --- a/org-ql.el +++ b/org-ql.el @@ -282,7 +282,7 @@ returns nil or non-nil." ;; Default sorting functions (org-ql--sort-by items (-list sort))) ;; Sort by user-given comparator. - ((pred functionp) (sort items sort)) + ((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"))))) ;;;###autoload