solved sending of sorting data to server side script by post instead of get.