From 2e8806e4d798aa395f13b4acc8e86fb8a0eb7bcd Mon Sep 17 00:00:00 2001 From: kelson42 Date: Mon, 16 Apr 2012 16:18:42 +0000 Subject: [PATCH] + sort contents by date DESC --- src/common/kiwix/library.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {