Code submission for: Jordan Hudgens

Submission Status: Passed

Submitted for: February 10 - Sort a Collection of Struct Objects by One of Their Attributes in Ruby

Submitted at: August 01, 2017

def total_sorter invoices
  invoices.sort_by do |invoice|
    invoice.total
  end.reverse
end
Unsupported Browser

devCamp does not support ancient browsers.
Install a modern version for best experience.