Drag-and-drop sorting relies on a sorting field and is used to manually order block records.
Create a "Sort" field. Sorting fields are no longer created automatically when building a table, so you need to create one manually.

When enabling drag-and-drop sorting in a table, select the sorting field.


Assume the current order is:
When one item (for example, 5) moves forward to position 3, only 3, 4, and 5 change their order values: 5 takes position 3, and 3 and 4 each shift back by one.
Then move 6 back to position 8. 6 takes position 8, and 7 and 8 each shift forward by one.