You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: report.rb
    path of file: ./repos/pig-ci-rails/lib/pig_ci
    
    the code of the file until where you have to start completion: class PigCI::Report
  attr_accessor :historical
    
  def sorted_and_formatted_data_for(timestamp)
    data_for(timestamp)[@i18n_key.to_sym].sort_by { |data|
      PigCI.report_row_sort_by(data)
    }.collect do |data|
      self.class.format_row(data)
    end
  end