diff options
Diffstat (limited to 'public/assets/js/lib/views/details/comments.js')
| -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 967204e..085873e 100644 --- a/public/assets/js/lib/views/details/comments.js +++ b/public/assets/js/lib/views/details/comments.js @@ -22,7 +22,9 @@ var CommentsView = FormView.extend({ this.$el.prepend(this.$formRow) } else { - comments.forEach(this.appendComment.bind(this)) + comments + .sort((a,b) => cmp(a.date, b.date)) + .forEach(this.appendComment.bind(this)) } }, |
