From 5895f34c39d2865f258c4708d5837cd548056eff Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Mon, 8 Mar 2021 22:33:26 +0900 Subject: [PATCH] trying to add sorting to extraction stuff --- app/Http/Controllers/MiningTaxes/MiningTaxesController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Controllers/MiningTaxes/MiningTaxesController.php b/app/Http/Controllers/MiningTaxes/MiningTaxesController.php index 86254613b..fbc7d2948 100644 --- a/app/Http/Controllers/MiningTaxes/MiningTaxesController.php +++ b/app/Http/Controllers/MiningTaxes/MiningTaxesController.php @@ -134,6 +134,7 @@ class MiningTaxesController extends Controller //Sort extractions by arrival time $structuresCollection = collect($structures); $sorted = $structuresCollection->sortBy('arrival_time'); + //Store the sorted collection back into the variable before being used again. $structures = $sorted->all(); /**