trying to add sorting to extraction stuff

This commit is contained in:
2021-03-08 22:33:26 +09:00
parent ad6cfcb41f
commit 5895f34c39

View File

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