Add completion: order contestants by name + add email if present
This commit is contained in:
@@ -100,7 +100,7 @@ class CompletionsController < ApplicationController
|
||||
end
|
||||
|
||||
def set_data
|
||||
@contestants = @contest.contestants
|
||||
@contestants = @contest.contestants.order(:name)
|
||||
@puzzles = @contest.puzzles
|
||||
end
|
||||
|
||||
|
@@ -96,7 +96,7 @@ class MessagesController < ApplicationController
|
||||
end
|
||||
|
||||
def set_data
|
||||
@contestants = @contest.contestants
|
||||
@contestants = @contest.contestants.order(:name)
|
||||
@puzzles = @contest.puzzles
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user