Ok Pieter, I will increase the number of devices to 30.
Does this type of sorting look OK for you? you can move an item up or down the list which will change its ID number. I have created the buttons, so if this looks OK, I will add the code to do the sorting tomorrow.
I have also added a column for the ID number of the device.