Sort devices