int compareTo(WifiAP other) { if (rssi > other.rssi) { return -1; } if (rssi == other.rssi) { return 0; } return 1; }