SIGN IN SIGN UP

fix #7136: ui: tree: harmonize folder view resource ordering

Resources in the Folder View are ordered lexicographically, whereas the
Server View uses the `getTypeOrder` function for ordering.

This happens because grouping nodes in the Folder View have their `type`
property set to the literal string 'type', causing `getTypeOrder` to
return the same default value for all groups.

Fix this by resolving the actual resource type from the `groupbyid`
field in `nodeSortFn` when `type === 'type'`. This applies the defined
sort order (LXC, QEMU, Node, SDN, Network, Storage).

Signed-off-by: Elias Huhsovitz <e.huhsovitz@proxmox.com>
Link: https://lore.proxmox.com/20260818115237.91447-1-e.huhsovitz@proxmox.com
E
Elias Huhsovitz committed
8694ab5d76111af7de618822676ebf188c23bc43
Parent: f6997e6
Committed by Dominik Csapak <d.csapak@proxmox.com> on 8/18/2026, 1:43:35 PM