Sort iotd before adding to list