Added pSOS to sort