remove duplicate sorting