Sort newest to oldest.

This commit is contained in:
tastytea 2019-05-16 07:54:24 +02:00
parent 563690dba9
commit 3e4ee6985f
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ const vector<Database::entry> 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();