dualfroz ffb09fb652 fix #5772: node network view: sort names and ports naturally
The interface list was sorted by comparing the names as plain strings,
so 'eno10' and 'eno11' came before 'eno2', and 'vmbr10' before 'vmbr2'.

Sort by name with a comparison that orders numbers in the names by
their value instead. Use the same sorter for the initial order of the
store and for the name column, so that the column header still shows
the initial sort order and the first click on it reverses it, like
before.

The 'Ports/Slaves' column uses the type as data index, so sorting by it
just sorted by type. Sort it by the shown ports or slaves instead, also
in natural order.

Signed-off-by: Michal Fox <me@dualfroz.com>
2026-10-02 16:50:20 +02:00
S
Description
My contributions to proxmox-git/proxmox-widget-toolkit: 6 commits
132 KiB
0 Stars 1 Watchers 0 Forks
Languages
JavaScript 100%