added javascript function to get parameter by name for better results of sorting ajaxification.