diff --git a/app/views/templates/_show_phases_sections.html.erb b/app/views/templates/_show_phases_sections.html.erb index 64fe81f..ec365d8 100644 --- a/app/views/templates/_show_phases_sections.html.erb +++ b/app/views/templates/_show_phases_sections.html.erb @@ -33,8 +33,7 @@ - <% (1..phase_hash[:sections].length).each do |section_no| %> - <% section = phase_hash[:sections][section_no] %> + <% (phase_hash[:sections].values.sort_by { |key| key[:data][:number] }).each do |section| %> <% if section.present? %> @@ -43,9 +42,9 @@ <% if section[:questions].present? %>