From 25f1e5b83d7edc63bc72118b0aa94f665c804100 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Tue, 7 Oct 2014 21:19:15 +0200 Subject: [PATCH] Fixed order of comments --- src/Controllers/CommentController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controllers/CommentController.php b/src/Controllers/CommentController.php index 88581f67..95fd1a4a 100644 --- a/src/Controllers/CommentController.php +++ b/src/Controllers/CommentController.php @@ -64,7 +64,7 @@ class CommentController extends AbstractController $data[] = [ 'post' => $this->postViewProxy->fromEntity($post), 'comments' => $this->commentViewProxy->fromArray( - $this->commentService->getByPost($post), + array_reverse($this->commentService->getByPost($post)), $this->getCommentsFetchConfig()), ]; }