sorting all devices and single device added