Skip to content

Commit

Permalink
Sort currencies alphabetically by _name_
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Jul 6, 2023
1 parent 855748b commit 76073a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/banchan/studios/common.ex
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ defmodule Banchan.Studios.Common do
:ZAR,
:ZMW
]
|> Enum.sort_by(&(Money.Currency.get(&1).name))

@doc """
Returns a list of supported currencies as atoms using their uppercase
Expand Down

0 comments on commit 76073a3

Please sign in to comment.