pseudo sort complete