diff --git a/src/common/kiwix/library.cpp b/src/common/kiwix/library.cpp index eb6295a1b..562226e36 100644 --- a/src/common/kiwix/library.cpp +++ b/src/common/kiwix/library.cpp @@ -40,7 +40,7 @@ namespace kiwix { } bool Book::sortByDate(const kiwix::Book &a, const kiwix::Book &b) { - return strcmp(a.date.c_str(), b.date.c_str()) < 0; + return strcmp(a.date.c_str(), b.date.c_str()) > 0; } bool Book::sortBySize(const kiwix::Book &a, const kiwix::Book &b) {