Fix: (org-ql-select) Sorting with single atom sorter

Closes #90.  Thanks to Jeff Filipovits (@legalnonsense).
This commit is contained in:
Jeff Filipovits 2020-01-07 08:02:50 -05:00 committed by Adam Porter
parent 9bd1235e00
commit 154d3bc949
3 changed files with 16 additions and 13 deletions

View file

@ -411,6 +411,7 @@ Expands into a call to ~org-ql-select~ with the same arguments. For convenience
+ Search/view buffers now always end with a newline, which prevents side-scrolling of the window when calling =end-of-buffer=.
+ Face for done to-do keywords in =org-ql-view= buffers. (Thanks to [[https://github.com/dsdshcym][Yiming Chen]].)
+ Make view buffers read-only. (Fixes [[https://github.com/alphapapa/org-ql/issues/72][#72]]. Thanks to [[https://github.com/xeijin][xeijin]].)
+ Sorting with single sorter specified as an atom. (Thanks to [[https://github.com/legalnonsense][Jeff Filipovits]].)
*Internal*
+ Added generic node data cache to speed up recursive, tree-based queries.

View file

@ -242,7 +242,7 @@ returns nil or non-nil."
(pcase sort
(`nil items)
((or 'date 'deadline 'scheduled 'todo 'priority 'random
(guard (cl-loop for elem in sort
(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)))

View file

@ -748,6 +748,8 @@ File: README.info, Node: 04-pre, Next: 032, Up: Changelog
• Make view buffers read-only. (Fixes #72
(https://github.com/alphapapa/org-ql/issues/72). Thanks to xeijin
(https://github.com/xeijin).)
• Sorting with single sorter specified as an atom. (Thanks to Jeff
Filipovits (https://github.com/legalnonsense).)
*Internal*
• Added generic node data cache to speed up recursive, tree-based
@ -1040,18 +1042,18 @@ Node: Agenda-like views18025
Node: Listing / acting-on results19430
Node: Changelog24032
Node: 04-pre24569
Node: 03227288
Node: 03127669
Node: 0327864
Node: 02330837
Node: 02231063
Node: 02131329
Node: 0231526
Node: 0135559
Node: Notes35658
Node: Comparison with Org Agenda searches35820
Node: org-sidebar36691
Node: License36970
Node: 03227414
Node: 03127795
Node: 0327990
Node: 02330963
Node: 02231189
Node: 02131455
Node: 0231652
Node: 0135685
Node: Notes35784
Node: Comparison with Org Agenda searches35946
Node: org-sidebar36817
Node: License37096

End Tag Table