Hi Mohamad Ansari,
In your get_p_xxx provide field type as sortable and create one event in that event write the above link logic. then that will be trigger when ever your sorting your field.
CASE iv_property.
WHEN if_bsp_wd_model_setter_getter=>fp_sortable.
rv_value = 'SORT'.
ENDCASE.
just fallow this link
Thanks & Regards,
Srinivas.