message: Sort script handles submenu commands
diff: @@ -35,7 +35,7 @@ async function sortPackageJson(path) {
  await writeJson(path, packageJson);
  }
  -const sortCommand = (a, b) => a.command.localeCompare(b.command);
  +const sortCommand = (a, b) => a.command?.localeCompare(b.command);
  function sortCommands(commands) {
  commands = commands.sort(sortCommand);
  