Skip to content

Commit

Permalink
Fix non-alphabetic sorting of repo topics (go-gitea#28938)
Browse files Browse the repository at this point in the history
  • Loading branch information
wackbyte authored and silverwind committed Feb 20, 2024
1 parent 8f6a24c commit f80889a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/repo/topic.go
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ func syncTopicsInRepository(sess db.Engine, repoID int64) error {
topicNames := make([]string, 0, 25)
if err := sess.Table("topic").Cols("name").
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
}

Expand Down

0 comments on commit f80889a

Please sign in to comment.