You can either disable Auto Screen Rotate (Menu > Settings > Display > Auto-rotate screen).
Or, if you like certain apps having a landscape display, you can reset the calibration of the internal accelerometer ... may be possible it hasn't been set to know where "level" is, and hence rotates a lot sooner than it should. (Menu > Settings > Display > G-Sensor calibration)