def report_table(output, sort, options = {}, &_block)
      output.puts
      top_categories = output.slice_results(sorted_by(sort))
      output.with_style(top_line: true) do
        output.table(*statistics_header(title: options[:title], highlight: sort)) do |rows|
          top_categories.each { |(category, _)| rows << statistics_row(category) }
        end
      end
    end
def report_table(output, sort, options = {}, &_block)
      output.puts
      top_categories = output.slice_results(sorted_by(sort))
      output.with_style(top_line: true) do
        output.table(*statistics_header(title: options[:title], highlight: sort)) do |rows|
          top_categories.each { |(category, _)| rows << statistics_row(category) }
        end
      end
    end
Block function to build a result table using a provided sorting function.
 <tt>output</tt> The output object.
 <tt>amount</tt> The number of rows in the report table (default 10).
 === Options
  * </tt>:title</tt> The title of the table
  * </tt>:sort</tt> The key to sort on (:hits, :cumulative, :average, :min or :max)