sort based on pp dist feature added