added start date sort

This commit is contained in:
Harry Bomrah 2016-04-11 18:01:45 +08:00
parent a626e12478
commit fcc41fe3b2
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ class WritingConference
before_validation :add_http
scope :sort_for_frontend, ->{ where(:is_hidden=>false).order_by(:year => "desc", :publication_date => "desc") }
scope :sort_for_frontend, ->{ where(:is_hidden=>false).order_by(:year => "desc", :publication_date => "desc", :period_start_date => "desc") }
def create_link
title = []