Fix series sorting
* calibre-book.el (calibre-book-sort-by-series): Fix sorting order. * calibre.el: Bump version number. * etc/NEWS: Mention fix to sorting.
This commit is contained in:
parent
06d6a97bf3
commit
855a9cb092
|
@ -88,12 +88,12 @@
|
||||||
t
|
t
|
||||||
(if (not (calibre-book-series b))
|
(if (not (calibre-book-series b))
|
||||||
nil
|
nil
|
||||||
(cl-case (compare-strings (calibre-book-series a) nil nil
|
(let ((v (compare-strings (calibre-book-series a) nil nil
|
||||||
(calibre-book-series b) nil nil)
|
(calibre-book-series b) nil nil)))
|
||||||
(-1 t)
|
(if (numberp v)
|
||||||
((eq t) (< (calibre-book-series-index a)
|
(< v 0)
|
||||||
(calibre-book-series-index b)))
|
(< (calibre-book-series-index a)
|
||||||
(1 nil)))))
|
(calibre-book-series-index b)))))))
|
||||||
|
|
||||||
(provide 'calibre-book)
|
(provide 'calibre-book)
|
||||||
;;; calibre-book.el ends here
|
;;; calibre-book.el ends here
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
;; Author: Kjartan Oli Agustsson <kjartanoli@disroot.org>
|
;; Author: Kjartan Oli Agustsson <kjartanoli@disroot.org>
|
||||||
;; Maintainer: Kjartan Oli Agustsson <kjartanoli@disroot.org>
|
;; Maintainer: Kjartan Oli Agustsson <kjartanoli@disroot.org>
|
||||||
;; Version: 1.4.0
|
;; Version: 1.4.1
|
||||||
;; Package-Requires: ((emacs "27.1") (compat "29.1.4.1"))
|
;; Package-Requires: ((emacs "27.1") (compat "29.1.4.1"))
|
||||||
;; URL: https://git.disroot.org/kjartanoli/calibre.el
|
;; URL: https://git.disroot.org/kjartanoli/calibre.el
|
||||||
|
|
||||||
|
|
4
etc/NEWS
4
etc/NEWS
|
@ -5,6 +5,10 @@ See the end of the file for license conditions.
|
||||||
|
|
||||||
This file is about changes in calibre.el, the Emacs client for
|
This file is about changes in calibre.el, the Emacs client for
|
||||||
Calibre.
|
Calibre.
|
||||||
|
|
||||||
|
* Changes in calibre.el 1.4.1
|
||||||
|
** Fix sorting by series
|
||||||
|
Sorting by series did not sort series names correctly.
|
||||||
|
|
||||||
|
|
||||||
* Changes in calibre.el 1.4.0
|
* Changes in calibre.el 1.4.0
|
||||||
|
|
Loading…
Reference in New Issue