Fix bug with sorting of incident dates
This commit is contained in:
@@ -83,7 +83,7 @@ class HomeController extends AbstractController
|
||||
}
|
||||
|
||||
// Sort the array so it takes into account the added days
|
||||
$allIncidents->sortBy(function ($value, $key) {
|
||||
$allIncidents = $allIncidents->sortBy(function ($value, $key) {
|
||||
return strtotime($key);
|
||||
}, SORT_REGULAR, true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user