mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fix sort.
This commit is contained in:
parent
8a0ac81fd0
commit
2e1f31a7f8
@ -166,8 +166,6 @@ class OperationsController extends Controller
|
||||
$sum[$accountId] = floatval($row['sum']);
|
||||
}
|
||||
|
||||
// Sort the data with volume descending, edition ascending
|
||||
// Add $data as the last parameter, to sort by the common key
|
||||
array_multisort($sum, SORT_ASC, $expenses);
|
||||
|
||||
return $expenses;
|
||||
@ -211,9 +209,7 @@ class OperationsController extends Controller
|
||||
$sum[$accountId] = floatval($row['sum']);
|
||||
}
|
||||
|
||||
// Sort the data with volume descending, edition ascending
|
||||
// Add $data as the last parameter, to sort by the common key
|
||||
array_multisort($sum, SORT_ASC, $income);
|
||||
array_multisort($sum, SORT_DESC, $income);
|
||||
|
||||
return $income;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user