sorted the device detail phases correctly