delete the duplicate ones in the sorted list