I was wondering if anyone has a good solution to a problem I\'ve encountered numerous times during the last years.
I have a shopping cart and my customer explicitly
I solved it pragmatically like this:
The order is defined in the UI.
The backend gets a POST request that contains the IDs and the corresponding Position of every item in the list.
I start a transaction and update the position for every ID.
Done.
So ordering is expensive but reading the ordered list is super cheap.