adds order to booth selects in results/final_recounts forms
This commit is contained in:
@@ -13,6 +13,7 @@ module OfficingHelper
|
|||||||
officer_assignments.each do |oa|
|
officer_assignments.each do |oa|
|
||||||
options << ["#{oa.booth_assignment.booth.name}", oa.id]
|
options << ["#{oa.booth_assignment.booth.name}", oa.id]
|
||||||
end
|
end
|
||||||
|
options.sort! {|x,y| x[0]<=>y[0]}
|
||||||
options_for_select(options, params[:oa])
|
options_for_select(options, params[:oa])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user