David Kimura PRO said over 4 years ago on Sorting from Scratch :
  That's an interesting use case. If i'm understanding correctly, my first thought would be a state which can be updated based on the dragging actions. https://stimulusjs.org/handbook/managing-state