correct sorting for p1
p1 ajaxed