From 4972435b7619ceac8ac73e1405c8225983e7a7a0 Mon Sep 17 00:00:00 2001 From: Joacim Breiler Date: Mon, 30 Dec 2024 18:03:41 +0100 Subject: [PATCH] Reverse order of access points based on signal strength --- .../controllerservice/commands/GetAccessPointListCommand.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/controllerservice/commands/GetAccessPointListCommand.ts b/src/services/controllerservice/commands/GetAccessPointListCommand.ts index 05c3a14..dc8efd7 100644 --- a/src/services/controllerservice/commands/GetAccessPointListCommand.ts +++ b/src/services/controllerservice/commands/GetAccessPointListCommand.ts @@ -37,7 +37,7 @@ export class GetAccessPointListCommand extends Command { ssid: a.SSID, signal: +a.SIGNAL, isProtected: a.IS_PROTECTED === "1" - })).sort((a, b) => a.signal - b.signal); + })).sort((a, b) => b.signal - a.signal); } catch (error) { console.error( "An error occured while trying to parse accesspoint data",