aboutsummaryrefslogtreecommitdiff
path: root/src/clog.c
diff options
context:
space:
mode:
authorMichael McVady <femtonaut@gmail.com>2022-03-06 19:54:10 -0500
committerMichael McVady <femtonaut@gmail.com>2022-03-06 19:54:10 -0500
commit3fcd6b69c8e9d0acd5b679fd609db82da20ffb3e (patch)
tree7454b0acde151626f5393ab564ba64b720739409 /src/clog.c
parentc76ba13d24922525a76568ff7d686ba9a310a55e (diff)
Sort results by date
Diffstat (limited to 'src/clog.c')
-rw-r--r--src/clog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/clog.c b/src/clog.c
index 4c5f0c2..d3fa324 100644
--- a/src/clog.c
+++ b/src/clog.c
@@ -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);