mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 16:57:09 +00:00
Fix sort.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user