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(); /**