Skip to content

Commit

Permalink
Sorted commands by name in GenerateCommandIndex
Browse files Browse the repository at this point in the history
  • Loading branch information
fedarovich committed Feb 14, 2019
1 parent 22f1d91 commit 94cefa0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ void RenderCommand(CommandLineApplication cmd, string prefix = "")
output.WriteLine($"{prefix}* [{cmd.Name}]({link})");

prefix += " ";
foreach (var subCommand in cmd.Commands)
foreach (var subCommand in cmd.Commands.OrderBy(c => c.Name))
{
RenderCommand(subCommand, prefix);
}
Expand Down

0 comments on commit 94cefa0

Please sign in to comment.