From 0709f6f0abf36ea24344242bbd614cb809274832 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Sun, 28 May 2017 13:00:54 +0200 Subject: tweak sorting --- model/Conferences.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'model/Conferences.php') diff --git a/model/Conferences.php b/model/Conferences.php index f930e32..f7276ac 100644 --- a/model/Conferences.php +++ b/model/Conferences.php @@ -48,7 +48,7 @@ class Conferences $sorted = Conferences::getConferences(); usort($sorted, function($a, $b) { - return $b->startsAt() > $a->endsAt() ? 1 : -1; + return $b->startsAt() > $a->startsAt() ? 1 : -1; }); return $sorted; -- cgit v1.2.3