From 453709a117c2f6faa3d3e57c92bb4ea33095c1e8 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 26 Jul 2020 14:17:49 +0200 Subject: [PATCH] Reverse sort in chart --- app/Support/Chart/Category/FrontpageChartGenerator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Support/Chart/Category/FrontpageChartGenerator.php b/app/Support/Chart/Category/FrontpageChartGenerator.php index 3ef9a92fb9..39e4fcf787 100644 --- a/app/Support/Chart/Category/FrontpageChartGenerator.php +++ b/app/Support/Chart/Category/FrontpageChartGenerator.php @@ -98,7 +98,7 @@ class FrontpageChartGenerator // sort temp array by amount. $amounts = array_column($tempData, 'sum_float'); - array_multisort($amounts, SORT_DESC, $tempData); + array_multisort($amounts, SORT_ASC, $tempData); $currencyData = $this->createCurrencyGroups($tempData);