sorting of pps