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:
parent
398b246965
commit
fa3b1e016c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue