Adding the sort