+ sort contents by date DESC

This commit is contained in:
kelson42 2012-04-16 16:18:42 +00:00
parent 12fd7eb06a
commit 2e8806e4d7
1 changed files with 1 additions and 1 deletions

View File

@ -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) {