Use correct scope to sort headings by name

This commit is contained in:
Julian Herrero
2019-02-08 19:45:13 +01:00
parent 29a704bd60
commit a963a99c55
7 changed files with 57 additions and 26 deletions

View File

@@ -28,7 +28,7 @@
<div class="row margin">
<div id="headings" class="small-12 medium-7 column select-district">
<div class="row">
<% @group.headings.order_by_group_name.each_slice(7) do |slice| %>
<% @group.headings.sort_by_name.each_slice(7) do |slice| %>
<div class="small-6 medium-4 column end">
<% slice.each do |heading| %>
<span id="<%= dom_id(heading) %>"