Multi-line input to individual things in db, but in order

I am using this solution to bring in a multi-line input to individual things in the db. However, it’s really important that the things go into the database in the order they were entered. I noticed if I have the interval set to 0.01, things will not be created in the order they were entered. I have increased the interval to 1 second but this then takes a good amount of time if the data is large. How can I enforce that the data goes into the db in order?