Skip to content

Commit

Permalink
Reverse order of access points based on signal strength
Browse files Browse the repository at this point in the history
  • Loading branch information
breiler committed Dec 30, 2024
1 parent 1dbe3f0 commit 4972435
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 4972435

Please sign in to comment.