web: sort

This commit is contained in:
tree🌴 2024-02-19 03:38:13 +01:00
parent 5662f40b6f
commit aaac4278a3

View file

@ -7,7 +7,7 @@ import issues from '../issues.json';
---
<BaseLayout>
{issues.filter(i => i.newsHtml !== "").map((issue) => (
{issues.sort((x, y) => x.period[0] < y.period[0] ? 1 : -1).filter(i => i.newsHtml !== "").map((issue) => (
<WeekNews {issue} />
))}
</BaseLayout>