making device list sortable