Merge pull request #382 from coralproject/my_history_comments_reverse

Reverse chronological order for My Comment History
This commit is contained in:
Kim Gardner
2017-03-03 13:45:08 -05:00
committed by GitHub
+1 -1
View File
@@ -15,7 +15,7 @@ const User = {
// If the user is not an admin, only return comment list for the owner of
// the comments.
if (user && (user.hasRoles('ADMIN') || user.id === id)) {
return Comments.getByQuery({author_id: id});
return Comments.getByQuery({author_id: id, sort: 'REVERSE_CHRONOLOGICAL'});
}
return null;