diff --git a/src/gz.in b/src/gz.in index 14e456f..7f38bea 100755 --- a/src/gz.in +++ b/src/gz.in @@ -185,7 +185,8 @@ usage = 'The \'gz\' command provides a command line interface to the Gazebo'\ # Used to align the commands and the description. padding_width = 15 -commands.each do |cmd, versions| +commands.keys.sort.each do |cmd| + versions = commands[cmd] # Calculate the padding to add between the command and the description. padding_to_apply = padding_width - cmd.size - 1 padding = ''