Skip to content

Commit

Permalink
Sort buddies
Browse files Browse the repository at this point in the history
  • Loading branch information
arfon committed Jan 20, 2024
1 parent b69b574 commit baf733e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/editors/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@

<div class="col">
<%= f.label :buddy %>
<%= f.select :buddy_id, Editor.active.collect { |e| ["#{e.full_name} (@#{e.login})", e.id] }, { include_blank: true }, { class: "form-control" } %>
<%= f.select :buddy_id, Editor.active.sort_by(&:first_name).collect { |e| ["#{e.full_name} (@#{e.login})", e.id] }, { include_blank: true }, { class: "form-control" } %>
</div>

<div class="col">
Expand Down

0 comments on commit baf733e

Please sign in to comment.