Chore: Sort generated jsonnet dashboards by full path (#58267)

This commit is contained in:
Todd Treece 2022-11-04 15:14:56 -04:00 committed by GitHub
parent dce8879145
commit d80abd173b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,7 +76,7 @@ func (g *libjsonnetGen) generate() (string, error) {
return "", err
}
sort.Slice(g.dashboards, func(i, j int) bool {
sort.SliceStable(g.dashboards, func(i, j int) bool {
return g.dashboards[i].Name < g.dashboards[j].Name
})