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")