Skip to content

Commit

Permalink
Sort usergroups list by creation date by default
Browse files Browse the repository at this point in the history
  • Loading branch information
auggod committed Dec 8, 2021
1 parent f45af52 commit 333e534
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/usergroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ func (s *Server) ListUsersUserGroups(ctx context.Context, user *pbUser.UserReque
err := s.db.NewSelect().
Model(&usergroups).
Where("owner_id = ?", user.Id).
Order("created_at ASC").
Scan(ctx)

if err != nil {
Expand Down

0 comments on commit 333e534

Please sign in to comment.