From 96d44e58fd3e6beddbfcf4ca6cf1dbbf12ea0747 Mon Sep 17 00:00:00 2001 From: stuzer05 Date: Sun, 8 Dec 2024 16:29:15 +0200 Subject: [PATCH] Fix labels display --- routers/web/repo/issue_page_meta.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/routers/web/repo/issue_page_meta.go b/routers/web/repo/issue_page_meta.go index 7eda6e3c736..ddeaecf6e09 100644 --- a/routers/web/repo/issue_page_meta.go +++ b/routers/web/repo/issue_page_meta.go @@ -441,4 +441,8 @@ func (d *IssuePageMetaData) retrieveLabelsData(ctx *context.Context) { } labelsData.AllLabels = append(labelsData.AllLabels, labelsData.RepoLabels...) 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 + }) }