Skip to content

Commit

Permalink
sort dep labels.
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Ortel <[email protected]>
  • Loading branch information
jortel committed Nov 15, 2023
1 parent 789865e commit 5ca6663
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/analysis.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
"io"
"net/http"
"os"
"sort"
"strconv"
"strings"
)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5ca6663

Please sign in to comment.