From 3e4ee6985fe1a4ff2b5f22682733de5e616d5eea Mon Sep 17 00:00:00 2001 From: tastytea Date: Thu, 16 May 2019 07:54:24 +0200 Subject: [PATCH] Sort newest to oldest. --- src/sqlite.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sqlite.cpp b/src/sqlite.cpp index 4a8038a..601e6f8 100644 --- a/src/sqlite.cpp +++ b/src/sqlite.cpp @@ -103,7 +103,7 @@ const vector Database::retrieve(const time_point &start, const string query = "SELECT * FROM remwharead WHERE datetime " "BETWEEN '" + timepoint_to_string(start, true) + "' AND '" + timepoint_to_string(end, true) - + "' ORDER BY datetime;"; + + "' ORDER BY datetime DESC;"; sqlite::query q(*_con, query); sqlite::result_type res = q.get_result();