Skip to content

Commit 391b770

Browse files
authored
Merge pull request #102 from ruby-no-kai/copilot/sort-plans-by-rank
2 parents ada469c + c4a9cd9 commit 391b770

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/admin/conferences_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def show
1313
.group(:id)
1414
.select('plans.*, COUNT(sponsorships.plan_id) as cnt')
1515
.map {|_| [_, _.cnt, _.capacity] }
16-
.sort_by { |plan, _cnt, _capa| -plan.rank }
16+
.sort_by { |plan, _cnt, _capa| plan.rank }
1717
end
1818

1919
def attendees_keeper

0 commit comments

Comments
 (0)