From 03c3ea7012cf8aff77ef762352b519c195865679 Mon Sep 17 00:00:00 2001 From: Daniel Lando Date: Tue, 25 Jun 2024 08:44:21 +0200 Subject: [PATCH] fix: rf regions sort --- api/lib/ZwaveClient.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/api/lib/ZwaveClient.ts b/api/lib/ZwaveClient.ts index 44681d99b76..72e0526d366 100644 --- a/api/lib/ZwaveClient.ts +++ b/api/lib/ZwaveClient.ts @@ -6032,12 +6032,11 @@ class ZwaveClient extends TypedEventEmitter { node.hasDeviceConfigChanged = zwaveNode.hasDeviceConfigChanged() if(node.isControllerNode) { - node.rfRegions = this.driver.controller.getSupportedRFRegions()?.toSorted().map( + node.rfRegions = this.driver.controller.getSupportedRFRegions()?.map( (region) => ({ value: region, text: getEnumMemberName(RFRegion, region), - }), - ) ?? [] + })).sort((a, b) => a.text.localeCompare(b.text)) ?? [] } }