mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Sort Neighbors by ifName, not bei ifAlias (#11951)
This commit is contained in:
@@ -9,7 +9,7 @@ echo '<table class="table table-hover table-condensed">
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>';
|
</thead>';
|
||||||
|
|
||||||
foreach (dbFetchRows('SELECT * FROM links AS L, ports AS I WHERE I.device_id = ? AND I.port_id = L.local_port_id order by iFAlias', array($device['device_id'])) as $neighbour) {
|
foreach (dbFetchRows('SELECT * FROM links AS L, ports AS I WHERE I.device_id = ? AND I.port_id = L.local_port_id order by ifName', array($device['device_id'])) as $neighbour) {
|
||||||
$neighbour = cleanPort($neighbour);
|
$neighbour = cleanPort($neighbour);
|
||||||
echo '<td>' . generate_port_link($neighbour) . '<br>' . $neighbour['ifAlias'] . '</td>';
|
echo '<td>' . generate_port_link($neighbour) . '<br>' . $neighbour['ifAlias'] . '</td>';
|
||||||
if (is_numeric($neighbour['remote_port_id']) && $neighbour['remote_port_id']) {
|
if (is_numeric($neighbour['remote_port_id']) && $neighbour['remote_port_id']) {
|
||||||
|
Reference in New Issue
Block a user