diff --git a/lib/agent/providers/geo/strategies.js b/lib/agent/providers/geo/strategies.js index b920e55b0..71c5c7499 100644 --- a/lib/agent/providers/geo/strategies.js +++ b/lib/agent/providers/geo/strategies.js @@ -58,7 +58,7 @@ function wifi(cb) { if (list && Array.isArray(list) && list.length > 1) { list = list.sort((a, b) => { - return a.signal_strength - b.signal_strength; + return b.signal_strength - a.signal_strength; }); } @@ -76,7 +76,7 @@ function wifi(cb) { if (aps && Array.isArray(aps) && aps.length > 1) { aps = aps.sort((a, b) => { - return a.signalStrength - b.signalStrength; + return b.signalStrength - a.signalStrength; }); }