summaryrefslogtreecommitdiffstats
path: root/models/external_login_user.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/external_login_user.go')
-rw-r--r--models/external_login_user.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/external_login_user.go b/models/external_login_user.go
index 5058fd1b4b..59c3732184 100644
--- a/models/external_login_user.go
+++ b/models/external_login_user.go
@@ -159,7 +159,7 @@ func FindExternalUsersByProvider(opts FindExternalUserOptions) ([]ExternalLoginU
var users []ExternalLoginUser
err := x.Where(opts.toConds()).
Limit(opts.Limit, opts.Start).
- Asc("id").
+ OrderBy("login_source_id ASC, external_id ASC").
Find(&users)
if err != nil {
return nil, err