Skip to content

Commit c4a9cd9

Browse files
Copilotsorah
andcommitted
Fix plan sorting to use ascending order by rank
Co-authored-by: sorah <[email protected]>
1 parent bb7250d commit c4a9cd9

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)