Skip to content

Commit 4fbe645

Browse files
eneuschildlafrikstechknowlogick
authored
Change order of possible-owner organizations to alphabetical (#13160)
Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
1 parent c8f7a6b commit 4fbe645

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

models/org.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,8 @@ func GetOrgsCanCreateRepoByUserID(userID int64) ([]*User, error) {
476476
Join("INNER", "`team`", "`team`.id = `team_user`.team_id").
477477
Where(builder.Eq{"`team_user`.uid": userID}).
478478
And(builder.Eq{"`team`.authorize": AccessModeOwner}.Or(builder.Eq{"`team`.can_create_org_repo": true})))).
479-
Desc("`user`.updated_unix").Find(&orgs)
479+
Asc("`user`.name").
480+
Find(&orgs)
480481
}
481482

482483
// GetOrgUsersByUserID returns all organization-user relations by user ID.

0 commit comments

Comments
 (0)