Split the sort method