Sort log lines newest-first

This commit is contained in:
Jeremy Dormitzer 2020-06-16 11:30:15 -04:00
parent 7922185557
commit 96511ee17c

View File

@ -145,7 +145,7 @@
(let ((base (format "SELECT %s FROM %s" (let ((base (format "SELECT %s FROM %s"
structlog-db-record-field structlog-db-record-field
structlog-db-table)) structlog-db-table))
(order-by (format "ORDER BY %s->'%s'" (order-by (format "ORDER BY %s->'%s' DESC"
structlog-db-record-field structlog-db-record-field
structlog-time-field)) structlog-time-field))
(limit (plist-get query :limit)) (limit (plist-get query :limit))