How to reorder many to many by pivot attribute?

I'm using spatie/sortable and want to reorder records after one is detached. Is there a way to achieve this without pivot model?
Was this page helpful?