Skip to content

Commit

Permalink
fix: incorrect sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
rayhanadev committed Jan 3, 2025
1 parent 9b02513 commit 2a0823e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/thoughts/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const entries = await getCollection("blog").then((entries) =>
isDraft: isDraft(entry.filePath!),
};
})
.sort((a, b) => dayjs(a.date).unix() - dayjs(b.date).unix()),
.sort((a, b) => dayjs(b.date).unix() - dayjs(a.date).unix()),
);
---

Expand Down

0 comments on commit 2a0823e

Please sign in to comment.