branch: externals/calibre
commit 8560bbd48b68889015545100331964a9b814fed9
Author: Kjartan Óli Ágústsson <[email protected]>
Commit: Kjartan Óli Ágústsson <[email protected]>

    Sort in ascending order by series index
    
    * calibre-book.el (calibre-book-sort-by-series): Sort in ascending
    order by series index.
---
 calibre-book.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/calibre-book.el b/calibre-book.el
index dea62879bf..4746e6890a 100644
--- a/calibre-book.el
+++ b/calibre-book.el
@@ -120,7 +120,7 @@ for private functions."
       (cl-case (compare-strings (calibre-book-series a) nil nil
                                   (calibre-book-series b) nil nil)
           (-1 t)
-          ((eq t) (> (calibre-book-series-index a)
+          ((eq t) (< (calibre-book-series-index a)
                      (calibre-book-series-index b)))
           (1 nil)))))
 

Reply via email to