Watch what happens in the quad view
Execute that procedure once for each object and watch the quad view.
You should see the objects adjust their positions and orientations so as to be aligned with the world.
This will also cause the objects to be aligned with the ground which was aligned with the world earlier.