sort the devices based on their signal strengths