Fix bug with sorting of incident dates

This commit is contained in:
James Brooks
2015-05-29 20:43:12 +01:00
parent 3197b5d18d
commit cb83f5c0c6

View File

@@ -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);