From 5ca66639a39d32eb5f335c7c6654063369c3b4f3 Mon Sep 17 00:00:00 2001 From: Jeff Ortel Date: Wed, 15 Nov 2023 09:10:47 -0800 Subject: [PATCH] sort dep labels. Signed-off-by: Jeff Ortel --- api/analysis.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/analysis.go b/api/analysis.go index 377733154..b003cd707 100644 --- a/api/analysis.go +++ b/api/analysis.go @@ -16,6 +16,7 @@ import ( "io" "net/http" "os" + "sort" "strconv" "strings" ) @@ -1966,6 +1967,7 @@ func (r *TechDependency) With(m *model.TechDependency) { // // Model builds a model. func (r *TechDependency) Model() (m *model.TechDependency) { + sort.Strings(r.Labels) m = &model.TechDependency{} m.Name = r.Name m.Version = r.Version