SQLite and list box

Coming back to this, I saw another discussion with an example that hopefully it is still available

I wonder if the loop in the discussion will be fast? Right now, it is taking about 8 seconds to store about 50 rows. Again, what I want to do is change the order in which the rows are shown if the user drags a row to a different position

Thanks