summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--models/org.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/models/org.go b/models/org.go
index b24db935a4..84f2892e4a 100644
--- a/models/org.go
+++ b/models/org.go
@@ -476,7 +476,8 @@ func GetOrgsCanCreateRepoByUserID(userID int64) ([]*User, error) {
Join("INNER", "`team`", "`team`.id = `team_user`.team_id").
Where(builder.Eq{"`team_user`.uid": userID}).
And(builder.Eq{"`team`.authorize": AccessModeOwner}.Or(builder.Eq{"`team`.can_create_org_repo": true})))).
- Desc("`user`.updated_unix").Find(&orgs)
+ Asc("`user`.name").
+ Find(&orgs)
}
// GetOrgUsersByUserID returns all organization-user relations by user ID.