diff options
author | Michael McVady <femtonaut@gmail.com> | 2022-03-06 19:54:10 -0500 |
---|---|---|
committer | Michael McVady <femtonaut@gmail.com> | 2022-03-06 19:54:10 -0500 |
commit | 3fcd6b69c8e9d0acd5b679fd609db82da20ffb3e (patch) | |
tree | 7454b0acde151626f5393ab564ba64b720739409 /src | |
parent | c76ba13d24922525a76568ff7d686ba9a310a55e (diff) |
Sort results by date
Diffstat (limited to 'src')
-rw-r--r-- | src/clog.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -68,7 +68,7 @@ page(struct http_request *req) err = kore_pgsql_query( &sql, "SELECT id, title, created_at::DATE, body FROM posts " - "ORDER BY id ASC;" + "ORDER BY updated_at DESC;" ); if (!err) { kore_pgsql_logerror(&sql); |