Install
Use your favorite package manager to install it.
Using Swapy
Below, I'm showing you a simple layout, but yours can be as complex as you want it to be.
Listening to Events
You can listen to swap events to do things like storing the new order. To make it more convenient for you, the swap event returns three versions of the new order: map, object, and array.