readme sorting

This commit is contained in:
tree🌴 2024-02-13 14:27:51 +01:00
parent c37a80972a
commit c93c334623

View file

@ -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 = [];