Fix: (org-ql--sort-by) Use reverse instead of nreverse
Released as 0.4.8.
This commit is contained in:
commit
9432f95314
2 changed files with 7 additions and 2 deletions
|
|
@ -398,6 +398,11 @@ Expands into a call to ~org-ql-select~ with the same arguments. For convenience
|
||||||
|
|
||||||
/Note:/ Breaking changes may be made before version 1.0, but in the event of major changes, attempts at backward compatibility will be made with obsolescence declarations, translation of arguments, etc. Users who need stability guarantees before 1.0 may choose to use tagged stable releases.
|
/Note:/ Breaking changes may be made before version 1.0, but in the event of major changes, attempts at backward compatibility will be made with obsolescence declarations, translation of arguments, etc. Users who need stability guarantees before 1.0 may choose to use tagged stable releases.
|
||||||
|
|
||||||
|
** 0.4.8
|
||||||
|
|
||||||
|
*Fixed*
|
||||||
|
+ Multiple sorters not preserved when refreshing views. (Fixes [[https://github.com/alphapapa/org-ql/issues/136][#136]], [[https://github.com/alphapapa/org-ql/pull/137][#137]]. Thanks to [[https://github.com/natrys][Imran Khan]].)
|
||||||
|
|
||||||
** 0.4.7
|
** 0.4.7
|
||||||
|
|
||||||
*Fixed*
|
*Fixed*
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
;; Author: Adam Porter <adam@alphapapa.net>
|
;; Author: Adam Porter <adam@alphapapa.net>
|
||||||
;; Url: https://github.com/alphapapa/org-ql
|
;; Url: https://github.com/alphapapa/org-ql
|
||||||
;; Version: 0.4.6
|
;; Version: 0.4.8
|
||||||
;; Package-Requires: ((emacs "26.1") (dash "2.13") (dash-functional "1.2.0") (f "0.17.2") (org "9.0") (org-super-agenda "1.2-pre") (ov "1.0.6") (peg "0.6") (s "1.12.0") (ts "0.2-pre"))
|
;; Package-Requires: ((emacs "26.1") (dash "2.13") (dash-functional "1.2.0") (f "0.17.2") (org "9.0") (org-super-agenda "1.2-pre") (ov "1.0.6") (peg "0.6") (s "1.12.0") (ts "0.2-pre"))
|
||||||
;; Keywords: hypermedia, outlines, Org, agenda
|
;; Keywords: hypermedia, outlines, Org, agenda
|
||||||
|
|
||||||
|
|
@ -1456,7 +1456,7 @@ PREDICATES is a list of one or more sorting methods, including:
|
||||||
;; Put at end of list if not found
|
;; Put at end of list if not found
|
||||||
(1+ (length org-todo-keywords-1)))))))
|
(1+ (length org-todo-keywords-1)))))))
|
||||||
(-flatten-n 1 (-map #'cdr sorted-groups)))))
|
(-flatten-n 1 (-map #'cdr sorted-groups)))))
|
||||||
(cl-loop for pred in (nreverse predicates)
|
(cl-loop for pred in (reverse predicates)
|
||||||
do (setq items (if (eq pred 'todo)
|
do (setq items (if (eq pred 'todo)
|
||||||
(sort-by-todo-keyword items)
|
(sort-by-todo-keyword items)
|
||||||
(-sort (sorter pred) items)))
|
(-sort (sorter pred) items)))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue