Skip to content

Commit 29090c4

Browse files
committed
Fix: (org-ql--sort-by) Use reverse instead of nreverse
Released as 0.4.8.
2 parents 0d12cdb + 6618318 commit 29090c4

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

README.org

+5
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,11 @@ Expands into a call to ~org-ql-select~ with the same arguments. For convenience
398398

399399
/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.
400400

401+
** 0.4.8
402+
403+
*Fixed*
404+
+ 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]].)
405+
401406
** 0.4.7
402407

403408
*Fixed*

org-ql.el

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
;; Author: Adam Porter <adam@alphapapa.net>
44
;; Url: https://github.com/alphapapa/org-ql
5-
;; Version: 0.4.6
5+
;; Version: 0.4.8
66
;; 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"))
77
;; Keywords: hypermedia, outlines, Org, agenda
88

@@ -1456,7 +1456,7 @@ PREDICATES is a list of one or more sorting methods, including:
14561456
;; Put at end of list if not found
14571457
(1+ (length org-todo-keywords-1)))))))
14581458
(-flatten-n 1 (-map #'cdr sorted-groups)))))
1459-
(cl-loop for pred in (nreverse predicates)
1459+
(cl-loop for pred in (reverse predicates)
14601460
do (setq items (if (eq pred 'todo)
14611461
(sort-by-todo-keyword items)
14621462
(-sort (sorter pred) items)))

0 commit comments

Comments
 (0)