From 25a88e8747773d283f94687ab8d1b375981937fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juanjo=20Baza=CC=81n?= Date: Tue, 21 Feb 2017 12:59:35 +0100 Subject: [PATCH] adds order to booth selects in results/final_recounts forms --- app/helpers/officing_helper.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/helpers/officing_helper.rb b/app/helpers/officing_helper.rb index eb7513e87..2cfebf832 100644 --- a/app/helpers/officing_helper.rb +++ b/app/helpers/officing_helper.rb @@ -13,6 +13,7 @@ module OfficingHelper officer_assignments.each do |oa| options << ["#{oa.booth_assignment.booth.name}", oa.id] end + options.sort! {|x,y| x[0]<=>y[0]} options_for_select(options, params[:oa]) end