From 6b74e0b5c7eb8595b28dc04352e118482a65f978 Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Fri, 26 Dec 2025 20:45:41 -0600 Subject: [PATCH] fix: sort posts mby most recent --- src/utils/sort.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/sort.js b/src/utils/sort.js index cea5e54..d609ff6 100644 --- a/src/utils/sort.js +++ b/src/utils/sort.js @@ -8,5 +8,5 @@ export const sortItem = (a, b) => { const aDate = parseEuroDate(a.data.date).getTime(); const bDate = parseEuroDate(b.data.date).getTime(); - return aDate === bDate ? a.slug.localeCompare(b.slug) : bDate - aDate; + return aDate === bDate ? b.slug.localeCompare(a.slug) : bDate - aDate; };