fix: sort posts mby most recent

This commit is contained in:
Barrett Ruth 2025-12-26 20:45:41 -06:00
parent fecac748b4
commit 6b74e0b5c7

View file

@ -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;
};