I think you missed.
Follow these simple steps to lock the orientation of your iPhone 4:
From any screen, double-tap the home button
Scroll as far left as you can on the multitasking dock
The first symbol to the left will be a circular arrow
Select this to either lock or unlock the orientation of your iPhone 4
That's it!