Sort device list