diff --git a/app/helpers/admin/journal_papers_helper.rb b/app/helpers/admin/journal_papers_helper.rb index 881af51..a5abbbb 100644 --- a/app/helpers/admin/journal_papers_helper.rb +++ b/app/helpers/admin/journal_papers_helper.rb @@ -118,7 +118,7 @@ module Admin::JournalPapersHelper def get_data_for_excel(year_start,year_end) data = [] - roles = Role.where(:disabled => false, :title.ne => "", :title.ne => nil) + roles = Role.where(:disabled => false, :title.ne => "", :title.ne => nil).asc(:key) roles.each do |role| d = {} d["name"] = role.title diff --git a/app/views/admin/journal_papers/analysis.html.erb b/app/views/admin/journal_papers/analysis.html.erb index c0dc089..b278374 100644 --- a/app/views/admin/journal_papers/analysis.html.erb +++ b/app/views/admin/journal_papers/analysis.html.erb @@ -56,12 +56,12 @@