Updated sort ajax call