From 2e170f073ae258d27680baf16f8db1aa2dcf9b78 Mon Sep 17 00:00:00 2001 Message-ID: <2e170f073ae258d27680baf16f8db1aa2dcf9b78.1709893748.git.yantar92@posteo.net> From: Ihor Radchenko Date: Fri, 8 Mar 2024 13:28:12 +0300 Subject: [PATCH] src/bzg/data.clj (get-data): Sort list of entries by date (latest first) Link: https://orgmode.org/list/87wmqdxmds.fsf@bzg.fr --- src/bzg/data.clj | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bzg/data.clj b/src/bzg/data.clj index 99ab66d..333dd6a 100644 --- a/src/bzg/data.clj +++ b/src/bzg/data.clj @@ -74,6 +74,8 @@ :requests (fetch/requests source-id search) :patches (fetch/patches source-id search) :news (fetch/news source-id search)) + ;; Display the latest first. + resources (reverse (sort resources)) headers (condp = format "rss" {"Content-Type" "application/xml"} "md" {"Content-Type" "text/plain; charset=utf-8"} -- 2.43.0