diff --git a/packages/angular/cli/commands/generate-impl.ts b/packages/angular/cli/commands/generate-impl.ts index b7df4f1d81a5..f07cd398870c 100644 --- a/packages/angular/cli/commands/generate-impl.ts +++ b/packages/angular/cli/commands/generate-impl.ts @@ -24,6 +24,8 @@ export class GenerateCommand extends SchematicCommand { this.description.suboptions = {}; const schematicNames = schematicName ? [schematicName] : collection.listSchematicNames(); + // Sort as a courtesy for the user. + schematicNames.sort(); for (const name of schematicNames) { const schematic = this.getSchematic(collection, name, true);