Reverse chronos

This commit is contained in:
Belen Curcio
2017-03-03 13:37:10 -05:00
parent 79102de9d2
commit bb05fa5325
+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;