mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
feat(alert): order alerts by name.. instead of nothing.
This commit is contained in:
parent
a23b7f1371
commit
4e567b5f02
@ -92,6 +92,8 @@ func HandleAlertsQuery(query *m.GetAlertsQuery) error {
|
||||
params = append(params, query.Limit)
|
||||
}
|
||||
|
||||
sql.WriteString("ORDER BY name ASC")
|
||||
|
||||
alerts := make([]*m.Alert, 0)
|
||||
if err := x.Sql(sql.String(), params...).Find(&alerts); err != nil {
|
||||
return err
|
||||
|
Loading…
Reference in New Issue
Block a user