Skip to content

Commit

Permalink
sort tags alphabetically (#3608)
Browse files Browse the repository at this point in the history
Co-authored-by: David Townley <[email protected]>
  • Loading branch information
d-g-town and David Townley authored Sep 20, 2023
1 parent a4c9ae7 commit 0091d6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/repository/gorm/tag.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func (repo *TagRepository) ReadTagByNameAndProjectId(tagName string, projectId u
func (repo *TagRepository) ListTagsByProjectId(projectId uint) ([]*models.Tag, error) {
tags := make([]*models.Tag, 0)

err := repo.db.Preload("Releases").Where("project_id = ?", projectId).Find(&tags).Error
err := repo.db.Preload("Releases").Where("project_id = ?", projectId).Order("name asc").Find(&tags).Error
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 0091d6b

Please sign in to comment.