diff --git a/plugin/api/alerting/rule.go b/plugin/api/alerting/rule.go index 4f259379..a7d0031d 100644 --- a/plugin/api/alerting/rule.go +++ b/plugin/api/alerting/rule.go @@ -414,6 +414,13 @@ func (alertAPI *AlertAPI) searchRule(w http.ResponseWriter, req *http.Request, p }) } queryDSL := util.MapStr{ + "sort": []util.MapStr{ + { + "created": util.MapStr{ + "order": "desc", + }, + }, + }, "from": from, "size": size, "query": util.MapStr{