From 9768df803f29cac1adefe9e07c488910606c7ba2 Mon Sep 17 00:00:00 2001 From: ajuvercr Date: Mon, 14 Sep 2020 21:51:16 +0200 Subject: [PATCH] FIX --- layouts/partials/question.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/question.erb b/layouts/partials/question.erb index 31def9d..a5494a7 100644 --- a/layouts/partials/question.erb +++ b/layouts/partials/question.erb @@ -18,7 +18,7 @@ <% end %> -<% question[:antwoorden].each_with_index do |answer, idx|%> +<% question[:antwoorden].sort_by{ |x| x[:tekst] }.each_with_index do |answer, idx|%> <% if answer[:vraag] %>