If I have 4 db rows, I want to be able to sort them using column 'position'.
id - name - position
1 - row1 - 1
2 - row2 - 2
3 - row3 - 3
4 - row4 - 4
I know how to sort with php SELECT SORT BY etc
But I want to be able to press a hyperlink which would swap positions.
Row img img
row1 (down)
row2 (up) (down)
row3 (up) (down)
row4 (up)
ie, Press up on row 2 would change row2 position -> 1 and would change row 1 position -> 2
Any help would be greatly appreciated.