From 6182a625737dabb84c516661b7151145fd844f8e Mon Sep 17 00:00:00 2001 From: Jakub Kottnauer Date: Tue, 28 May 2024 19:22:04 +0200 Subject: [PATCH] Sort accounts in the sidebar (#815) --- app/views/accounts/_account_list.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/accounts/_account_list.html.erb b/app/views/accounts/_account_list.html.erb index e70849ff..9e2e9c0f 100644 --- a/app/views/accounts/_account_list.html.erb +++ b/app/views/accounts/_account_list.html.erb @@ -27,7 +27,7 @@ - <% 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" %>