From 5983c5854e2033331ab21f24f64607e2d06f12be Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Mon, 9 Aug 2021 01:50:39 +0100 Subject: [PATCH] Sort feed items --- src/index.11tydata.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.11tydata.js b/src/index.11tydata.js index 43e64fd..0294a97 100644 --- a/src/index.11tydata.js +++ b/src/index.11tydata.js @@ -48,6 +48,7 @@ module.exports = async function() { ); return item; }))); + feed_items.sort((a, b) => a.pubdate - b.pubdate); return { layout: "main.njk",