Is it possible to drag and drop items inside a segment for a web application?

Hello team

Is it possible to move the rows around in a dynamic segment by dragging and dropping them? Send us some sample code if you could.