Skip to content

Commit

Permalink
Sort accounts in the sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubkottnauer committed May 28, 2024
1 parent 981a1cb commit ed887f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/accounts/_account_list.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
</div>
</div>
</summary>
<% group.children.each do |account_value_node| %>
<% group.children.sort_by(&:name).each do |account_value_node| %>
<% account = account_value_node.original %>
<%= link_to account_path(account), class: "flex items-center w-full gap-3 px-3 py-2 mb-1 hover:bg-gray-100 rounded-[10px]" do %>
<%= image_tag account_logo_url(account), class: "w-6 h-6" %>
Expand Down

0 comments on commit ed887f9

Please sign in to comment.