summaryrefslogtreecommitdiffstats
path: root/models/organization/team_repo.go
diff options
context:
space:
mode:
authorTyrone Yeh <siryeh@gmail.com>2022-07-15 00:00:10 +0800
committerGitHub <noreply@github.com>2022-07-14 18:00:10 +0200
commit931c02d1521b7b990f70a590c691b066dbc27d4d (patch)
tree7d83e905b7d09b90eb82768a0347867cbbb03d9f /models/organization/team_repo.go
parentf85bb6f70bb390ec04a296827ac0f2a078741a80 (diff)
downloadgitea-931c02d1521b7b990f70a590c691b066dbc27d4d.tar.gz
gitea-931c02d1521b7b990f70a590c691b066dbc27d4d.zip
Add order by for assignee no sort issue (#20053)
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
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)
}