device modal sorted