mirror of https://github.com/kiwix/libkiwix.git
+ sort contents by date DESC
This commit is contained in:
parent
12fd7eb06a
commit
2e8806e4d7
|
@ -40,7 +40,7 @@ namespace kiwix {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Book::sortByDate(const kiwix::Book &a, const kiwix::Book &b) {
|
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) {
|
bool Book::sortBySize(const kiwix::Book &a, const kiwix::Book &b) {
|
||||||
|
|
Loading…
Reference in New Issue