make sure comments are sorted in ascending order from oldest to newest in the SPV

This commit is contained in:
Jonne Haß 2013-08-22 16:21:51 +02:00
parent 1b7bc02eee
commit 75d3b1598f

View file

@ -99,7 +99,7 @@ class PostInteractionPresenter
{
:likes => as_api(@post.likes),
:reshares => PostPresenter.collection_json(@post.reshares, @current_user),
:comments => CommentPresenter.as_collection(@post.comments),
:comments => CommentPresenter.as_collection(@post.comments.order('created_at ASC')),
:participations => as_api(@post.participations)
}
end