From 89688f4b0f0f6d1bdc9456b14efb5b7b1be1fb2d Mon Sep 17 00:00:00 2001 From: tree Date: Tue, 13 Feb 2024 14:27:51 +0100 Subject: [PATCH] readme sorting --- Makefile | 5 ++++- README.md | 2 +- utils/readme.js | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index ba78cd2..39e16d9 100644 --- a/Makefile +++ b/Makefile @@ -16,4 +16,7 @@ sync: make build readme compile: - cp -r web/dist/** dist \ No newline at end of file + cp -r web/dist/** dist + +fmt: + deno fmt utils/*.js \ No newline at end of file diff --git a/README.md b/README.md index 6f9fd60..75c4e91 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ You can read more in our [documentation](https://docs.web3privacy.info/news/week | Week | Period | Deadline | Curator | Links | | --- | --- | --- | --- | --- | | [2024-07](/data/2024/week07.md) | Feb 12 - Feb 18 | Feb 18 | Mykola | [Edit](https://github.com/web3privacy/news/edit/main/data/2024/week07.md) | -| [2024-05](/data/2024/week05.md) | Jan 29 - Feb 4 | ✅ [published](https://news.web3privacy.info/2024-05) | - | [Paragraph](https://paragraph.xyz/@privacynews/2024-05) | | [2024-06](/data/2024/week06.md) | Feb 5 - Feb 11 | ✅ [published](https://news.web3privacy.info/2024-06) | Tree | [Paragraph](https://paragraph.xyz/@privacynews/2024-06), [Mirror](https://mirror.xyz/0x0f1F3DAf416B74DB3DE55Eb4D7513a80F4841073/YeescUmT44QN7Hv4a9L6GuK6LZS0N5VO-4g7NnYHNbo) | +| [2024-05](/data/2024/week05.md) | Jan 29 - Feb 4 | ✅ [published](https://news.web3privacy.info/2024-05) | - | [Paragraph](https://paragraph.xyz/@privacynews/2024-05) | diff --git a/utils/readme.js b/utils/readme.js index 82a2ada..aaf8e21 100644 --- a/utils/readme.js +++ b/utils/readme.js @@ -5,7 +5,7 @@ function capitalizeFirstLetter(string) { } let issues = JSON.parse(await Deno.readTextFile("./dist/index.json")); -issues = issues.sort((x, y) => x.period[1] > y.period[1] ? 1 : -1); +issues = issues.sort((x, y) => x.period[0] > y.period[0] ? -1 : 1); const lines = [];