From c93c334623c64787d6c1f2f55f76f5cd703dd242 Mon Sep 17 00:00:00 2001 From: tree Date: Tue, 13 Feb 2024 14:27:51 +0100 Subject: [PATCH] readme sorting --- utils/readme.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/readme.js b/utils/readme.js index e4afddf..82a2ada 100644 --- a/utils/readme.js +++ b/utils/readme.js @@ -4,7 +4,8 @@ function capitalizeFirstLetter(string) { return string.charAt(0).toUpperCase() + string.slice(1); } -const issues = JSON.parse(await Deno.readTextFile("./dist/index.json")); +let issues = JSON.parse(await Deno.readTextFile("./dist/index.json")); +issues = issues.sort((x, y) => x.period[1] > y.period[1] ? 1 : -1); const lines = [];