From 1ea2ed273ede9eba1d6cd8b045d3240fb708e55e Mon Sep 17 00:00:00 2001 From: dsgagi Date: Sat, 11 Aug 2018 23:41:40 +0200 Subject: [PATCH] Update alerts.inc.php (#8977) Also sort by timestamp, after sorting/grouping by severity. --- html/includes/table/alerts.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/includes/table/alerts.inc.php b/html/includes/table/alerts.inc.php index 4efd937540..2730fa6735 100644 --- a/html/includes/table/alerts.inc.php +++ b/html/includes/table/alerts.inc.php @@ -103,7 +103,7 @@ if (empty($total)) { if (!isset($vars['sort']) || empty($vars['sort'])) { $sort = 'timestamp DESC'; } else { - $sort = '`alert_rules`.`severity` DESC'; + $sort = '`alert_rules`.`severity` DESC, timestamp DESC'; } $sql .= " ORDER BY $sort";