mirror of
https://github.com/GuerillaStudio/vanillalist.git
synced 2024-12-21 00:21:57 +00:00
Sort plugins by id
This commit is contained in:
parent
04f8d612da
commit
d42952bef6
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ module.exports = function (eleventyConfig) {
|
|||
return fs.promises.readFile(filename, { encoding: 'utf-8' })
|
||||
})
|
||||
const plugins = await Promise.all(files)
|
||||
return plugins.map(JSON.parse).sort((a, b) => new Date(b.date) - new Date(a.date))
|
||||
return plugins.map(JSON.parse).sort((a, b) => b.id - a.id)
|
||||
});
|
||||
|
||||
eleventyConfig.addFilter('JSONstringify', (value) => {
|
||||
|
|
Loading…
Reference in a new issue