That ‘inverted order’ is the intended result.
You can dig around in the CSS Specification if you’d like, but your example renders as it ought to.
If you’d like them to display in the same order as the markup, float the .container
right, its children left.