From dca8b1afb432076ae654cbd962af5ce8b198435d Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sat, 28 Oct 2017 02:05:34 +0100 Subject: [PATCH] Sort decending --- src/format-talks-bundle/src/Twig/FormatTalksExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/format-talks-bundle/src/Twig/FormatTalksExtension.php b/src/format-talks-bundle/src/Twig/FormatTalksExtension.php index 5991874d..85e4730d 100644 --- a/src/format-talks-bundle/src/Twig/FormatTalksExtension.php +++ b/src/format-talks-bundle/src/Twig/FormatTalksExtension.php @@ -20,7 +20,7 @@ class FormatTalksExtension extends Twig_Extension public function formatTalks($talks) { return collect($talks) - ->sortBy('event.date') + ->sortByDesc('event.date') ->all(); }