I can't find any effective and easy method how to change place of elements
in array in this way

0
1
2
3
4
5

then I drag and drop element 4 before element 2
so array shuld look like this

0
1
4
2
3
5

then fg I drag and drop in other way element 1 after element 2

0
4
2
1
3
5