Skip to content
Snippets Groups Projects
Verified Commit f8536832 authored by tribut's avatar tribut :man_dancing:
Browse files

Sort by name

parent a4e91cdb
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@
<p>
Jump to:
<ul class="flex flex-row flex-wrap">
<% @assignments.group_by(&:user).each_with_index do |(user, assignments), index| %>
<% @assignments.group_by(&:user).sort_by { |user, _| user.name }.each_with_index do |(user, assignments), index| %>
<li>
<%= link_to user.name, "#" + dom_id(user), class: index == 0 ? "" : "border-l-2 border-gray-300 pl-2 ml-2" %>
</li>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment