added award date for sort
This commit is contained in:
parent
6cd6549ac4
commit
5ab686b34e
|
@ -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 ""
|
||||
|
|
Loading…
Reference in New Issue