Hi Vimal,
As mentioned by Ram, you need to create an action for table event 'ONSORT' and write the sorting logic there.
In addition, if you want to show the Sort Icon on the screen by default then you need to set the 'SORTSTATE' of the inputfield element as up/down as required.
Regards,
Manogna