Appearance
Ordering
php
->sortAttribute('sort')With a sort attribute, people reorder cards by hand.
- The board sends only the new neighbours. The server writes a single row with a position halfway between them.
- When positions get too close, or legacy rows have none, that column is renumbered once in the same transaction.
- Float, decimal and integer columns all work, so an existing
order_columnfrom spatie/eloquent-sortable can be reused.
TIP
Index (status, sort) for large boards.
Without a sort attribute, cards follow your query's order and only change column.