listview에 drag&drop 기능을 추가해서 화면에 표시되는 list에 대한 sort 기능을 두었는데요

이렇게 사용자가 drag&drop 기능을 해서 바꿔놓은 대로 index를 저장해 놓고 싶습니다. 

어떤 방식으로 구현을 해야 할까요?