mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-01-10 15:14:09 +00:00
vmalert: sort groups at /alerts
page (#2968)
Sorting will produce deterministic output of grops on the page. Signed-off-by: hagen1778 <roman@victoriametrics.com>
This commit is contained in:
parent
91d0b45537
commit
f90f654cf2
1 changed files with 3 additions and 0 deletions
|
@ -251,6 +251,9 @@ func (rh *requestHandler) groupAlerts() []GroupAlerts {
|
|||
})
|
||||
}
|
||||
}
|
||||
sort.Slice(groupAlerts, func(i, j int) bool {
|
||||
return groupAlerts[i].Group.Name < groupAlerts[j].Group.Name
|
||||
})
|
||||
return groupAlerts
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue