mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
webui: Order the list of devices in get_all_devices() (#6797)
This commit is contained in:
committed by
Neil Lathwood
parent
d886086e78
commit
5581c40e19
@@ -208,7 +208,7 @@ function get_all_devices()
|
||||
if (isset($cache['devices']['hostname'])) {
|
||||
$devices = array_keys($cache['devices']);
|
||||
} else {
|
||||
$devices = dbFetchRows("SELECT * FROM `devices`");
|
||||
$devices = dbFetchRows("SELECT * FROM `devices` ORDER BY hostname");
|
||||
}
|
||||
|
||||
return $devices;
|
||||
|
Reference in New Issue
Block a user