diff --git a/app/models/certificate.rb b/app/models/certificate.rb index ab8d6da..352a9df 100644 --- a/app/models/certificate.rb +++ b/app/models/certificate.rb @@ -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