https://v7.material.angular.io/cdk/drag-drop/api#CdkDragDrop
Using the CdkDragDrop event, you would be able to identify the container dropped and the container which it was dropped upon.
With this information, you would be able to carry out whichever function you wish, should the re-order occur, you can revert the changes in the list.