diff --git a/src/Skobkin/Bundle/PointToolsBundle/Controller/ApiController.php b/src/Skobkin/Bundle/PointToolsBundle/Controller/ApiController.php index d136f3c..67b62b9 100644 --- a/src/Skobkin/Bundle/PointToolsBundle/Controller/ApiController.php +++ b/src/Skobkin/Bundle/PointToolsBundle/Controller/ApiController.php @@ -25,6 +25,7 @@ class ApiController extends Controller ->select(['se', 'sub']) ->innerJoin('se.subscriber', 'sub') ->where($qb->expr()->eq('se.author', ':author')) + ->orderBy('se.date', 'desc') ->setParameter('author', $user) ->setMaxResults(20) ;