now sortbytype is passed as ajax parameter also