From 8b0ffe747cc6dfbe5b6ed2fd677a0e545f7645ca Mon Sep 17 00:00:00 2001 From: Rueshyna Date: Mon, 25 Feb 2013 11:43:02 +0800 Subject: [PATCH] sort conference and type --- .../personal_conference/desktop/conference_pages_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/vendor/built_in_modules/personal_conference/app/controllers/panel/personal_conference/desktop/conference_pages_controller.rb b/vendor/built_in_modules/personal_conference/app/controllers/panel/personal_conference/desktop/conference_pages_controller.rb index 377d8a11..8ca6ae69 100644 --- a/vendor/built_in_modules/personal_conference/app/controllers/panel/personal_conference/desktop/conference_pages_controller.rb +++ b/vendor/built_in_modules/personal_conference/app/controllers/panel/personal_conference/desktop/conference_pages_controller.rb @@ -75,6 +75,7 @@ class Panel::PersonalConference::Desktop::ConferencePagesController < Applicatio def conference_type conference_types = ConferencePaperType.all all_conference_lists = WritingConference.where(create_user_id: current_user.id) + all_conference_lists = all_conference_lists.asc(:conference_title) all_conference_lists = all_conference_lists.map do |j| [ j.conference_title, j.conference_paper_type_ids.map do |type|