2 sorting the wagon