Fix: Wrong sorting

This commit is contained in:
Marcel Kapfer (mmk2410) 2016-04-19 09:47:31 +02:00
parent a39fde6e01
commit 6ebb9411e8

View file

@ -225,7 +225,7 @@ foreach ($days as $day) {
$courses[] = $row;
}
usort($courses, function($a, $b) {
return $a[5] - $b[5];
return $a["time"] - $b["time"];
});
foreach ($courses as $course) {
?>