diff options
-rw-r--r-- | src/database/database.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/database/database.cpp b/src/database/database.cpp index b2413d0..d19ed7a 100644 --- a/src/database/database.cpp +++ b/src/database/database.cpp @@ -197,11 +197,10 @@ std::vector<Database::MucLogLine> Database::get_muc_logs(const std::string& owne request << reference_record_id; } - request.order_by() << Id{}; if (paging == Database::Paging::first) - request << " ASC "; + request.order_by() << Database::Date{} << " ASC, " << Id{} << " ASC "; else - request << " DESC "; + request.order_by() << Database::Date{} << " DESC, " << Id{} << " DESC "; if (limit >= 0) request.limit() << limit; |