mirror of
https://github.com/web3privacy/news.git
synced 2024-10-15 18:06:26 +02:00
web: sort
This commit is contained in:
parent
5662f40b6f
commit
aaac4278a3
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ import issues from '../issues.json';
|
||||||
---
|
---
|
||||||
|
|
||||||
<BaseLayout>
|
<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} />
|
<WeekNews {issue} />
|
||||||
))}
|
))}
|
||||||
</BaseLayout>
|
</BaseLayout>
|
Loading…
Reference in a new issue