From b229a3a8b825dc927f4b65c122732dd2d2472357 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Tue, 10 Jan 2017 04:30:53 +0300 Subject: [PATCH] array_reverse() added to sort events by day. --- .../PointToolsBundle/Repository/SubscriptionEventRepository.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Skobkin/Bundle/PointToolsBundle/Repository/SubscriptionEventRepository.php b/src/Skobkin/Bundle/PointToolsBundle/Repository/SubscriptionEventRepository.php index ef8e105..f8760f0 100644 --- a/src/Skobkin/Bundle/PointToolsBundle/Repository/SubscriptionEventRepository.php +++ b/src/Skobkin/Bundle/PointToolsBundle/Repository/SubscriptionEventRepository.php @@ -121,6 +121,8 @@ class SubscriptionEventRepository extends EntityRepository $result[] = reset($row); } + $result = array_reverse($result); + return $result; } } \ No newline at end of file