Fix sorting of days

This commit is contained in:
James Brooks
2015-05-02 09:09:02 +01:00
parent b0c808f449
commit 8f9d2614e9

View File

@@ -96,7 +96,7 @@ class HomeController extends AbstractController
// Sort the array so it takes into account the added days
$allIncidents->sortBy(function ($value, $key) {
return $key;
return strtotime($key);
}, SORT_REGULAR, true);
// Scheduled maintenance code.