mirror of
https://github.com/prometheus/prometheus
synced 2025-02-22 15:46:59 +00:00
Fix promlint order algorithm not work issue.
Signed-off-by: RainbowMango <renhongcai@huawei.com>
This commit is contained in:
parent
0a0a228db3
commit
f9de671cdd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user