mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Update alerts.inc.php (#8977)
Also sort by timestamp, after sorting/grouping by severity.
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user