VLANs sort in GUI (#13628)

This commit is contained in:
Peca Nesovanovic
2021-12-20 12:01:39 +01:00
committed by GitHub
parent b84e471587
commit dc73154ae6

View File

@@ -79,7 +79,7 @@ class VlansController implements DeviceTab
->on('vlans.device_id', 'ports_vlans.device_id');
})
->with(['port.device'])
->select('ports_vlans.*', 'vlans.vlan_name')
->select('ports_vlans.*', 'vlans.vlan_name')->orderBy('vlan_vlan')
->get();
$data = $portVlan->groupBy('vlan');