Skip to content

Commit d309a6b

Browse files
wackbyteHenry Goodman
authored and
Henry Goodman
committed
Fix non-alphabetic sorting of repo topics (go-gitea#28938)
1 parent 2001b4d commit d309a6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/repo/topic.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ func syncTopicsInRepository(sess db.Engine, repoID int64) error {
366366
topicNames := make([]string, 0, 25)
367367
if err := sess.Table("topic").Cols("name").
368368
Join("INNER", "repo_topic", "repo_topic.topic_id = topic.id").
369-
Where("repo_topic.repo_id = ?", repoID).Desc("topic.repo_count").Find(&topicNames); err != nil {
369+
Where("repo_topic.repo_id = ?", repoID).Asc("topic.name").Find(&topicNames); err != nil {
370370
return err
371371
}
372372

0 commit comments

Comments
 (0)