trying to add sorting to extraction stuff
This commit is contained in:
@@ -134,6 +134,7 @@ class MiningTaxesController extends Controller
|
|||||||
//Sort extractions by arrival time
|
//Sort extractions by arrival time
|
||||||
$structuresCollection = collect($structures);
|
$structuresCollection = collect($structures);
|
||||||
$sorted = $structuresCollection->sortBy('arrival_time');
|
$sorted = $structuresCollection->sortBy('arrival_time');
|
||||||
|
//Store the sorted collection back into the variable before being used again.
|
||||||
$structures = $sorted->all();
|
$structures = $sorted->all();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user