Sort Neighbors by ifName, not bei ifAlias (#11951)

This commit is contained in:
SourceDoctor
2020-07-22 03:23:44 +02:00
committed by GitHub
parent 224f423ced
commit dba165c49e

View File

@@ -9,7 +9,7 @@ echo '<table class="table table-hover table-condensed">
</tr>
</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);
echo '<td>' . generate_port_link($neighbour) . '<br>' . $neighbour['ifAlias'] . '</td>';
if (is_numeric($neighbour['remote_port_id']) && $neighbour['remote_port_id']) {