mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
change sort order
git-svn-id: http://www.observium.org/svn/observer/trunk@164 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -4,7 +4,7 @@ if($_GET['location']) { $where = "AND location = '$_GET[location]'"; }
|
||||
if($_GET['location'] == "Unset") { $where = "AND location = ''"; }
|
||||
if($_GET['type']) { $where = "AND type = '$_GET[type]'"; }
|
||||
|
||||
$sql = "select * from devices WHERE 1 $where ORDER BY `ignore`, `status`, `os`, `hostname`";
|
||||
$sql = "select * from devices WHERE 1 $where ORDER BY `ignore`, `status`, `hostname`";
|
||||
if($_GET['status'] == "alerted") {
|
||||
$sql = "select * from devices " . $device_alert_sql . " GROUP BY `device_id` ORDER BY `ignore`, `status`, `os`, `hostname`";
|
||||
}
|
||||
|
Reference in New Issue
Block a user