Merge pull request #6445 from RainbowMango/pr_fix_promlint_order_algo

Fix promlint order algorithm not work issue
This commit is contained in:
Frederic Branczyk 2019-12-11 11:00:03 +01:00 committed by GitHub
commit e53f751765
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -87,6 +87,8 @@ func (l *Linter) Lint() ([]Problem, error) {
sort.SliceStable(problems, func(i, j int) bool {
if problems[i].Metric < problems[j].Metric {
return true
} else if problems[i].Metric > problems[j].Metric {
return false
}
return problems[i].Text < problems[j].Text