Rearrange Lines with Drag-and-Drop Function