diff --git a/app/models/honor.rb b/app/models/honor.rb index 18a47e4..dc91ad1 100644 --- a/app/models/honor.rb +++ b/app/models/honor.rb @@ -24,7 +24,7 @@ class Honor before_validation :add_http - scope :sort_for_frontend, ->{ where(:is_hidden=>false).order_by(:year => "desc") } + scope :sort_for_frontend, ->{ where(:is_hidden=>false).order_by(:year => "desc",:award_date => "desc") } def slug_title self.award_name+' '+self.awarding_unit rescue ""