From d42952bef6d86a737d8a94a8ff78058a2979d05b Mon Sep 17 00:00:00 2001 From: Tixie Date: Mon, 3 Jan 2022 15:04:54 +0100 Subject: [PATCH] Sort plugins by id --- .eleventy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.eleventy.js b/.eleventy.js index d03cc08..f9711ca 100755 --- a/.eleventy.js +++ b/.eleventy.js @@ -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) => {