Hi Ankit,
do as Patel suggested - the coding has been brought by note 1308322 - No sort on search result list after clear.
The coding "remember" what column and which directon was selected by USER, thus overriding what you have CONFIGURED. I guess this is error in standard, because the coding does not take into account posibility of sorting set by configuration.
Regards,
Dawood.