diff --git a/client/js/views/comments_page_view.js b/client/js/views/comments_page_view.js index ed741ef3..9816beb9 100644 --- a/client/js/views/comments_page_view.js +++ b/client/js/views/comments_page_view.js @@ -13,7 +13,7 @@ class CommentsPageView { const source = this._template(ctx); for (let post of ctx.results) { - post.comments.reverse(); + post.comments.sort((a, b) => { return b.id - a.id; }); new CommentListControl( source.querySelector( `.comments-container[data-for="${post.id}"]`),