Skip to content

Commit

Permalink
feat(@angular/cli): sort schematics by name in --help-json
Browse files Browse the repository at this point in the history
  • Loading branch information
hansl committed Sep 15, 2018
1 parent ec41e6c commit 3b5dbad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/angular/cli/commands/generate-impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ export class GenerateCommand extends SchematicCommand<GenerateCommandSchema> {
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);
Expand Down

0 comments on commit 3b5dbad

Please sign in to comment.