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

This commit was merged in pull request #1216.
This commit is contained in:
Alter Lagos
2024-10-02 03:48:39 +13:00
committed by GitHub
parent 398b246965
commit fa3b1e016c

View File

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