How to move the document Up & Down Through a button in View

Hi All, I have a view in which so many documents are there.Our requirement is to put two button Up & Down.When the user click up the selected document move up same in down.plz give any logic or formula soon.

Thanks

Aftab

Subject: How to move the document Up & Down Through a button in View

How is the view sorted? Change the value of the field for the first column in the view