From e89cfc6ae5132dc1897dcf38ea89420819f3c49c Mon Sep 17 00:00:00 2001 From: Thomas Rupprecht Date: Thu, 29 Jan 2026 11:09:12 +0100 Subject: [PATCH] Add sorting to attributes in matter cluster view Sort attributes by key in matter cluster view. --- dashboard/src/pages/matter-cluster-view.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dashboard/src/pages/matter-cluster-view.ts b/dashboard/src/pages/matter-cluster-view.ts index 3ca3ea4a..8eec6bb0 100644 --- a/dashboard/src/pages/matter-cluster-view.ts +++ b/dashboard/src/pages/matter-cluster-view.ts @@ -30,7 +30,8 @@ function clusterAttributes( .map((key) => { const attributeKey = Number(key.split("/")[2]); return { key: attributeKey, value: attributes[key] }; - }, []); + }, []) + .toSorted((a, b) => a.key - b.key); } @customElement("matter-cluster-view")