mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-14 16:13:54 +00:00
Reverse sort in chart
This commit is contained in:
@@ -98,7 +98,7 @@ class FrontpageChartGenerator
|
|||||||
|
|
||||||
// sort temp array by amount.
|
// sort temp array by amount.
|
||||||
$amounts = array_column($tempData, 'sum_float');
|
$amounts = array_column($tempData, 'sum_float');
|
||||||
array_multisort($amounts, SORT_DESC, $tempData);
|
array_multisort($amounts, SORT_ASC, $tempData);
|
||||||
|
|
||||||
$currencyData = $this->createCurrencyGroups($tempData);
|
$currencyData = $this->createCurrencyGroups($tempData);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user