def sort_by(field)
      field = field.to_sym
      field = :average unless FIELDS.include?(field)
      @sort_by = field
      self
    end
def sort_by(field)
      field = field.to_sym
      field = :average unless FIELDS.include?(field)
      @sort_by = field
      self
    end
Initializes a new {Report}. Used to sort and display data collected by a {Profiler}.

 @param [Array] data Data collected by a {Profiler}.
 @param [String] name The name of the object that was profiled.

 Sorts the report by the given field. Defaults to `:average`. Chainable with {#order}.

 @param [Symbol, String] field Any field from {FIELDS} to sort by.
 @return [Report] The {Report} object, suitable for chaining or display.