From 177ea5b199b090088ac4568498e9c1adffbab3ae Mon Sep 17 00:00:00 2001 From: Ihor Radchenko Date: Fri, 8 Mar 2024 16:40:32 +0100 Subject: [PATCH] src/bzg/data.clj: Sort resources by inversed dates --- src/bzg/data.clj | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bzg/data.clj b/src/bzg/data.clj index 99ab66d..3e4752f 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-by :date resources)) headers (condp = format "rss" {"Content-Type" "application/xml"} "md" {"Content-Type" "text/plain; charset=utf-8"} -- 2.45.2