Skip to content

Commit

Permalink
orderby snmp_index cause title is not unique at all
Browse files Browse the repository at this point in the history
  • Loading branch information
PipoCanaja committed Jan 3, 2025
1 parent bbf682e commit c8f1d48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LibreNMS/Modules/Qos.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public function cleanup(Device $device): int
public function dump(Device $device, string $type): ?array
{
return [
'qos' => $device->qos()->orderBy('title')
'qos' => $device->qos()->orderBy('title')->orderBy('snmp_idx')
->get()->map->makeHidden(['qos_id', 'created_at', 'updated_at', 'device_id', 'port_id', 'parent_id', 'last_polled']),
];
}
Expand Down

0 comments on commit c8f1d48

Please sign in to comment.