01-Sorting the wagon