
CodeReview: Fix wrong order of comments in a thread
@417df180385557ebce588e3c3b4603c100e28867
--- app/views/partial_comment_thread.scala.html
+++ app/views/partial_comment_thread.scala.html
... | ... | @@ -49,7 +49,7 @@ |
49 | 49 |
</div> |
50 | 50 |
|
51 | 51 |
<ul class="comments"> |
52 |
- @for(comment: ReviewComment <- thread.reviewComments) { |
|
52 |
+ @for(comment: ReviewComment <- thread.reviewComments.sortBy(c => c.createdDate)) { |
|
53 | 53 |
<li id="comment-@comment.id" class="comment"> |
54 | 54 |
<div class="comment-avatar"> |
55 | 55 |
<a href="@routes.UserApp.userInfo(comment.author.loginId)" class="avatar-wrap" data-toggle="tooltip" data-placement="top" title="@comment.author.name"> |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?