Minecraft wiki entry for Stairs, associated text: Pointing at a block top or the bottom half of a block side places the stairs right side up.
Pointing at a block bottom or the top half of a block side places the stairs upside-down.