From 1dd0c9f893c95ca7c9ad2ab3a86de336ea8b8f82 Mon Sep 17 00:00:00 2001 From: Eric Johnson Date: Sun, 28 Jun 2026 14:43:14 -0700 Subject: [PATCH] fix(ui): sort User Code values by slot number Values within the User Code command class group (0x63) in the expanded node view are displayed in arbitrary insertion order, making it difficult to find and manage specific lock code slots. Sort only the User Code CC group by propertyKey so slots display in ascending numerical order. Other command classes (notably Configuration CC) are left in their original order. --- src/components/nodes-table/NodeDetails.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/nodes-table/NodeDetails.vue b/src/components/nodes-table/NodeDetails.vue index a5983db0d6..77f4fad476 100644 --- a/src/components/nodes-table/NodeDetails.vue +++ b/src/components/nodes-table/NodeDetails.vue @@ -570,6 +570,12 @@ export default { groups.Configuration = [] } + for (const key in groups) { + if (groups[key][0]?.commandClass === 99) { + groups[key].sort((a, b) => (a.propertyKey ?? 0) - (b.propertyKey ?? 0)) + } + } + return groups } else { return {}