sort app overview RRDs by hostname (#10663)

This commit is contained in:
SourceDoctor
2019-10-09 02:25:22 +02:00
committed by Tony Murray
parent ca281ec12a
commit d779d970ed

View File

@@ -12,7 +12,7 @@ $graph_array['legend'] = 'no';
foreach ($apps as $app) {
echo '<div style="clear: both;">';
echo '<h2>'.generate_link($app->displayName(), array('page' => 'apps', 'app' => $app->app_type)).'</h2>';
$app_devices = dbFetchRows('SELECT * FROM `devices` AS D, `applications` AS A WHERE D.device_id = A.device_id AND A.app_type = ?', array($app->app_type));
$app_devices = dbFetchRows('SELECT * FROM `devices` AS D, `applications` AS A WHERE D.device_id = A.device_id AND A.app_type = ? order by D.hostname', array($app->app_type));
foreach ($app_devices as $app_device) {
$graph_type = $graphs[$app->app_type][0];