We're in the process of implementing drag & drop in our platform to reorder elements and while the UX is straightforward to manage I've seen a lot of options for persisting the order in DB.
I'd love to get some wisdom from the community and see what the best practices are. I've looked around on StackOverflow and found this article that has an interesting option to limit queries.
So, in your experience, what's the best approach for it?
Edit: for those stumbling on the post look at Guillaume's comment for neat SQL statements.
Need to keep up with a fast-moving software industry?