diff --git a/lib/moonshot/command_line.rb b/lib/moonshot/command_line.rb index e31533ff..384161c2 100644 --- a/lib/moonshot/command_line.rb +++ b/lib/moonshot/command_line.rb @@ -111,6 +111,8 @@ def load_commands command_name = commandify(klass) @commands[command_name] = klass end + + @commands = @commands.sort_by { |k, _v| k.to_s }.to_h end def commandify(klass)