Tidy: (org-ql-select) Sorting pcase
This commit is contained in:
parent
79d9bd59cf
commit
2e0d38daae
1 changed files with 2 additions and 3 deletions
|
|
@ -241,9 +241,8 @@ returns nil or non-nil."
|
|||
;; Sort items
|
||||
(pcase sort
|
||||
(`nil items)
|
||||
((or 'date 'deadline 'scheduled 'todo 'priority 'random
|
||||
(guard (cl-loop for elem in (-list sort)
|
||||
always (memq elem '(date deadline scheduled todo priority random)))))
|
||||
((guard (cl-loop for elem in (-list sort)
|
||||
always (memq elem '(date deadline scheduled todo priority random))))
|
||||
;; Default sorting functions
|
||||
(org-ql--sort-by items (-list sort)))
|
||||
;; Sort by user-given comparator.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue