diff --git a/server.js b/server.js index b39d338..ec6bcd6 100644 --- a/server.js +++ b/server.js @@ -203,6 +203,7 @@ function findUserById (i) { function findAllGroupsByOwner (i) { // console.log('findAllGroupsByOwner', i) return models.Group.findAll({ + order: 'id DESC', where: { ownerId: i },