aboutsummaryrefslogtreecommitdiffstats
path: root/models/organization/team_repo.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/organization/team_repo.go')
-rw-r--r--models/organization/team_repo.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/models/organization/team_repo.go b/models/organization/team_repo.go
index fb3f267f81..3ac4fa926b 100644
--- a/models/organization/team_repo.go
+++ b/models/organization/team_repo.go
@@ -81,5 +81,6 @@ func GetTeamsWithAccessToRepo(ctx context.Context, orgID, repoID int64, mode per
Join("INNER", "team_repo", "team_repo.team_id = team.id").
And("team_repo.org_id = ?", orgID).
And("team_repo.repo_id = ?", repoID).
+ OrderBy("name").
Find(&teams)
}