sort conference and type

This commit is contained in:
Rueshyna authored and chris committed 2013-02-25 12:01:59 +08:00
1 parent 522e0481e1
commit 6f599bb95d
1 file changed
+1
@@ -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|