Always show order poll questions by created at

PostgreSQL doesn't guarantee the order of the records, so we have to
specify it if we want the questions to be displayed in a consistent
order.
This commit is contained in:
decabeza
2021-08-01 00:33:27 +02:00
committed by Javi Martín
parent 25aa77c4c3
commit 9709b267a2
3 changed files with 20 additions and 2 deletions

View File

@@ -15,7 +15,7 @@
<th><%= t("admin.actions.actions") %></th>
</tr>
</thead>
<% @poll.questions.each do |question| %>
<% @poll.questions.sort_for_list.each do |question| %>
<tr id="<%= dom_id(question) %>">
<td>
<strong><%= question.title %></strong>