diff options
| -rw-r--r-- | public/assets/js/lib/views/details/comments.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/public/assets/js/lib/views/details/comments.js b/public/assets/js/lib/views/details/comments.js index 0c2cdcc..ad43939 100644 --- a/public/assets/js/lib/views/details/comments.js +++ b/public/assets/js/lib/views/details/comments.js @@ -16,7 +16,9 @@ var CommentsView = FormView.extend({ load: function(comments, thread){ if (thread.settings.hootbox) { - comments.forEach(this.prependComment.bind(this)) + comments + .sort((a,b) => return cmp(a.date, b.date)) + .forEach(this.prependComment.bind(this)) this.$el.prepend(this.$formRow) } else { |
