diff --git a/scripts/generateEquicordPluginList.ts b/scripts/generateEquicordPluginList.ts index 943da452..eded89f0 100644 --- a/scripts/generateEquicordPluginList.ts +++ b/scripts/generateEquicordPluginList.ts @@ -247,10 +247,9 @@ function isPluginFile({ name }: { name: string; }) { .filter(isPluginFile) .map(async dirent => { const [data, readme] = await parseFile(await getEntryPoint(dir, dirent)); - plugins.push(data); + plugins.sort().push(data); if (readme) readmes[data.name] = readme; }) - .sort() )); const data = JSON.stringify(plugins); diff --git a/scripts/generatePluginList.ts b/scripts/generatePluginList.ts index 957e8678..501684e8 100644 --- a/scripts/generatePluginList.ts +++ b/scripts/generatePluginList.ts @@ -247,10 +247,9 @@ function isPluginFile({ name }: { name: string; }) { .filter(isPluginFile) .map(async dirent => { const [data, readme] = await parseFile(await getEntryPoint(dir, dirent)); - plugins.push(data); + plugins.sort().push(data); if (readme) readmes[data.name] = readme; }) - .sort() )); const data = JSON.stringify(plugins);