From 1236b8a03bee403fcaa59d882d8e7fb9058b2280 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?louiz=E2=80=99?= Date: Tue, 24 Apr 2018 20:24:58 +0200 Subject: Only use the ID to order archives fix #3343 --- src/database/database.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/database/database.cpp b/src/database/database.cpp index a09dfe3..3b3e890 100644 --- a/src/database/database.cpp +++ b/src/database/database.cpp @@ -224,9 +224,9 @@ std::vector Database::get_muc_logs(const std::string& owne } if (paging == Database::Paging::first) - request.order_by() << Database::Date{} << " ASC, " << Id{} << " ASC "; + request.order_by() << Id{} << " ASC "; else - request.order_by() << Database::Date{} << " DESC, " << Id{} << " DESC "; + request.order_by() << Id{} << " DESC "; if (limit >= 0) request.limit() << limit; -- cgit v1.2.3