diff --git a/index.js b/index.js index 22b6a92c7c..b970a0cdf5 100644 --- a/index.js +++ b/index.js @@ -631,6 +631,7 @@ export function listComponents( const compMap = {}; const isRootPkg = ptype === "npm"; if (Array.isArray(pkg)) { + pkg.sort((a, b) => a.name.localeCompare(b.name)); pkg.forEach((p) => { addComponent(options, allImports, p, ptype, compMap, false, format); });