fix the duplicate  drugs after sort