Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fixed search sort
James Cole5dc0677599eb
diff --git a/app/Support/Search/Search.php b/app/Support/Search/Search.phpindex 3548a1d1d7..5270cdf610 100644--- a/app/Support/Search/Search.php+++ b/app/Support/Search/Search.php@@ -125,6 +125,16 @@ class Search implements SearchInterface});- return $set->merge($decrypted);+ $filtered = $set->merge($decrypted);++ $filtered->sortBy(+ function (TransactionJournal $journal) {+ return intval($journal->date->format('U'));+ }+ );++ $filtered = $filtered->reverse();++ return $filtered;}}