moved ordering before the worked example