Drag and drop records to set "order" field

Use case: I have a list of records which have an “order” field (integer). This order field represents the order in which tasks should be completed. It’d be great to have a component that allows users to drag records to change the order.

Note that I know I could somewhat achieve this with a single select, then enable drag & drop, but I somehow need to ensure that all the order numbers are unique (so if I move an item from order 1 to 2, the item at number 2 should be moved to 1!).

Not sure how useful this would be for others, maybe an edge case! Note this is related to my ask for help post found here:

3 Likes