From 96511ee17ce4bf0132d140a538a186135f6cd73b Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Tue, 16 Jun 2020 11:30:15 -0400 Subject: [PATCH] Sort log lines newest-first --- structlog-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/structlog-mode.el b/structlog-mode.el index fdf0175..255f5ac 100644 --- a/structlog-mode.el +++ b/structlog-mode.el @@ -145,7 +145,7 @@ (let ((base (format "SELECT %s FROM %s" structlog-db-record-field structlog-db-table)) - (order-by (format "ORDER BY %s->'%s'" + (order-by (format "ORDER BY %s->'%s' DESC" structlog-db-record-field structlog-time-field)) (limit (plist-get query :limit))