1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-22 14:49:38 +02:00

Sort currencies by name as a second order (#1216)

This commit is contained in:
Alter Lagos 2024-10-02 03:48:39 +13:00 committed by GitHub
parent 398b246965
commit fa3b1e016c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -23,7 +23,7 @@ module FormsHelper
end end
def currencies_for_select def currencies_for_select
Money::Currency.all_instances.sort_by(&:priority) Money::Currency.all_instances.sort_by { |currency| [ currency.priority, currency.name ] }
end end
private private