add sort_by_year method to paymentyeartotal.rb