Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe sort by purl which also includes group? Also there could be a comparator function used somewhere

pkg.forEach((p) => {
addComponent(options, allImports, p, ptype, compMap, false, format);
});
Expand Down