Skip to content

Commit f2a5fed

Browse files
NicholasCFindocomsoft
authored andcommitted
Sorts drop-to list names (#212)
1 parent 3d1ab38 commit f2a5fed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/duties_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def generate_duties
2121
end
2222

2323
def open_drop_modal
24-
@users = User.where.not(id: current_user.id)
24+
@users = User.where.not(id: current_user.id).order(:username)
2525
@drop_duty_list = Duty.includes(timeslot: :time_range)
2626
.find(params[:drop_duty_list])
2727
respond_to do |format|

0 commit comments

Comments
 (0)