Commit 6911e123aaff5dc501981057b42f295fdb5be168
1 parent
2ebd4ad0
Exists in
master
and in
28 other branches
Sort comments by creation date
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/app/article/comment/comments.html
| ... | ... | @@ -2,6 +2,6 @@ |
| 2 | 2 | <noosfero-post-comment ng-if="ctrl.showForm" [article]="ctrl.article" [parent]="ctrl.parent"></noosfero-post-comment> |
| 3 | 3 | |
| 4 | 4 | <div class="comments-list"> |
| 5 | - <noosfero-comment ng-repeat="comment in ctrl.comments" [comment]="comment" [article]="ctrl.article"></noosfero-comment> | |
| 5 | + <noosfero-comment ng-repeat="comment in ctrl.comments | orderBy: 'created_at':true"" [comment]="comment" [article]="ctrl.article"></noosfero-comment> | |
| 6 | 6 | </div> |
| 7 | 7 | </div> | ... | ... |