diff --git a/app/Domains/Settings/ManageCurrencies/Web/ViewHelpers/CurrencyIndexViewHelper.php b/app/Domains/Settings/ManageCurrencies/Web/ViewHelpers/CurrencyIndexViewHelper.php index e1f4f7ec760..bec24ca0187 100644 --- a/app/Domains/Settings/ManageCurrencies/Web/ViewHelpers/CurrencyIndexViewHelper.php +++ b/app/Domains/Settings/ManageCurrencies/Web/ViewHelpers/CurrencyIndexViewHelper.php @@ -10,7 +10,10 @@ class CurrencyIndexViewHelper public static function data(Account $account, int $currencyId = null): Collection { $currenciesCollection = $account->currencies() - ->where('active', true)->get()->map(function ($currency) use ($currencyId) { + ->orderBy('code') + ->where('active', true) + ->get() + ->map(function ($currency) use ($currencyId) { return [ 'id' => $currency->id, 'name' => $currency->code,