Sort alphabetically

This commit is contained in:
Jason Zimdars
2025-02-10 16:13:39 -06:00
parent b1177dc308
commit fe4a024015
2 changed files with 2 additions and 2 deletions
@@ -8,7 +8,7 @@
<strong>Assign this to…</strong>
<%= form_with url: bucket_bubble_assignment_toggles_path(bubble.bucket, bubble), class: "flex flex-column gap-half full-width", data: { controller: "form" } do |form| %>
<% users.each do |user| %>
<% users.sort_by(&:name).each do |user| %>
<div class="btn full-width borderless justify-start overflow-ellipsis" style="--btn-border-radius: 0.3em;">
<%= form.check_box "assignee_id[]", {
checked: bubble.assigned_to?(user),
+1 -1
View File
@@ -18,7 +18,7 @@
<hr class="separator--horizontal full-width">
<%= form_with url: bucket_bubble_tagging_toggles_path(bubble.bucket, bubble), class: "flex flex-column gap-half full-width", data: { controller: "form" } do |form| %>
<% tags.each do |tag| %>
<% tags.sort_by(&:hashtag).each do |tag| %>
<div class="btn full-width borderless justify-start overflow-ellipsis" style="--btn-border-radius: 0.3em;">
<%= form.check_box "tag_id[]", {
checked: bubble.tagged_with?(tag),