mirror of
https://github.com/go-gitea/gitea
synced 2024-12-22 21:14:41 +01:00
Fix non-alphabetic sorting of repo topics (#28938)
This commit is contained in:
parent
534917d576
commit
a240d5dfa7
1 changed files with 1 additions and 1 deletions
|
@ -366,7 +366,7 @@ func syncTopicsInRepository(sess db.Engine, repoID int64) error {
|
||||||
topicNames := make([]string, 0, 25)
|
topicNames := make([]string, 0, 25)
|
||||||
if err := sess.Table("topic").Cols("name").
|
if err := sess.Table("topic").Cols("name").
|
||||||
Join("INNER", "repo_topic", "repo_topic.topic_id = topic.id").
|
Join("INNER", "repo_topic", "repo_topic.topic_id = topic.id").
|
||||||
Where("repo_topic.repo_id = ?", repoID).Desc("topic.repo_count").Find(&topicNames); err != nil {
|
Where("repo_topic.repo_id = ?", repoID).Asc("topic.name").Find(&topicNames); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue