From dc74e75e641b9cab9cb828d2b9201c6e69ac1ac9 Mon Sep 17 00:00:00 2001 From: r-jeffries <25114417+r-jeffries@users.noreply.github.com> Date: Wed, 25 Mar 2026 10:28:21 -0400 Subject: [PATCH] Sort import account dropdown alphabetically (#1290) Co-authored-by: r-jeffries --- app/views/import/uploads/show.html.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/import/uploads/show.html.erb b/app/views/import/uploads/show.html.erb index bb2b64961..cc9a94136 100644 --- a/app/views/import/uploads/show.html.erb +++ b/app/views/import/uploads/show.html.erb @@ -56,7 +56,7 @@ <%= styled_form_with model: @import, scope: :import, url: import_upload_path(@import), multipart: true, class: "space-y-4" do |form| %> <%= form.select :account_id, - @import.family.accounts.visible.pluck(:name, :id), + @import.family.accounts.visible.alphabetically.pluck(:name, :id), { label: t(".qif_account_label"), include_blank: t(".qif_account_placeholder"), selected: @import.account_id }, required: true %> @@ -112,7 +112,7 @@ <%= form.select :col_sep, Import::SEPARATORS, label: true %> <% if @import.type == "TransactionImport" || @import.type == "TradeImport" %> - <%= form.select :account_id, @import.family.accounts.visible.pluck(:name, :id), { label: "Account (optional)", include_blank: "Multi-account import", selected: @import.account_id } %> + <%= form.select :account_id, @import.family.accounts.visible.alphabetically.pluck(:name, :id), { label: "Account (optional)", include_blank: "Multi-account import", selected: @import.account_id } %> <% end %>