changed title for sorting

This commit is contained in:
Harry Bomrah 2016-04-11 18:07:48 +08:00
parent 64e80f386a
commit 09f4f9c072
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ class Certificate
field :title, as: :slug_title, type: String, localize: true
belongs_to :member_profile
scope :sort_for_frontend, ->{ where(:is_hidden=>false).order_by(:created_at =>'desc') }
scope :sort_for_frontend, ->{ where(:is_hidden=>false).order_by(:title =>'asc') }
def self.get_plugin_datas_to_member(datas)
page = Page.where(:module => "personal_certificate").first rescue nil