# File lib/pry/default_commands/help.rb, line 43
        def display_index(groups)
          help_text = []

          groups.keys.sort_by(&method(:group_sort_key)).each do |key|
            commands = groups[key].sort_by{ |command| command.options[:listing].to_s }

            unless commands.empty?
              help_text << "#{text.bold(key)}\n" + commands.map do |command|
                "  #{command.options[:listing].to_s.ljust(18)} #{command.description}"
              end.join("\n")
            end
          end

          stagger_output(help_text.join("\n\n"))
        end