Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Sort currencies.
James Cole80f72d9dd78a
diff --git a/app/Http/Controllers/CurrencyController.php b/app/Http/Controllers/CurrencyController.phpindex 40026c295a..911aa55673 100644--- a/app/Http/Controllers/CurrencyController.php+++ b/app/Http/Controllers/CurrencyController.php@@ -205,6 +205,11 @@ class CurrencyController extends Controllerpublic function index(Request $request){$currencies = $this->repository->get();+ $currencies = $currencies->sortBy(+ function (TransactionCurrency $currency) {+ return $currency->name;+ }+ );$defaultCurrency = $this->repository->getCurrencyByPreference(Preferences::get('currencyPreference', config('firefly.default_currency', 'EUR')));$isOwner = true;if (!$this->userRepository->hasRole(auth()->user(), 'owner')) {