Fixed order of comments

This commit is contained in:
Marcin Kurczewski 2014-10-07 21:19:15 +02:00
parent ad8e3bdcd5
commit 25f1e5b83d

View file

@ -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()),
];
}