removed extra sort