Fix labels display

This commit is contained in:
stuzer05 2024-12-08 16:29:15 +02:00
parent 6bd70d4d87
commit 96d44e58fd
No known key found for this signature in database
GPG Key ID: A6ABAAA9268F9F4F

View File

@ -441,4 +441,8 @@ func (d *IssuePageMetaData) retrieveLabelsData(ctx *context.Context) {
} }
labelsData.AllLabels = append(labelsData.AllLabels, labelsData.RepoLabels...) labelsData.AllLabels = append(labelsData.AllLabels, labelsData.RepoLabels...)
labelsData.AllLabels = append(labelsData.AllLabels, labelsData.OrgLabels...) labelsData.AllLabels = append(labelsData.AllLabels, labelsData.OrgLabels...)
sort.Slice(labelsData.AllLabels, func(i, j int) bool {
return labelsData.AllLabels[i].Name < labelsData.AllLabels[j].Name
})
} }