mirror of
https://github.com/web3privacy/news.git
synced 2024-10-15 18:06:26 +02:00
readme sorting
This commit is contained in:
parent
c37a80972a
commit
c93c334623
1 changed files with 2 additions and 1 deletions
|
@ -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 = [];
|
||||
|
||||
|
|
Loading…
Reference in a new issue