scanPeripheralsDict = scanPeripheralsDict.OrderByDescending (r => r.Value.rssi).ToDictionary (r => r.Key, r => r.Value);
//foreach (KeyValuePair<string, PeripheralProperty> kvp in scanPeripheralsDict) {
// Debug.Log (kvp.Key + ":" + kvp.Value.rssi + "<br />");
//}