sort schedule page by date

This commit is contained in:
Ben Harris 2020-06-23 09:46:24 -04:00
parent 6867b90ea8
commit fd224caedc
1 changed files with 4 additions and 0 deletions

View File

@ -25,6 +25,10 @@ $schedule = json_decode(
true
);
usort($schedule, function ($a, $b) {
return $a["start"] < $b["start"] ? -1 : 1;
});
function formatdate($date) {
return date("D M d H:i", strtotime($date));
}