Blocking can be oriented in either direction, so long as other requirements are met. Fastener penetration requirements vary with fastener diameter, so blocking orientation may require consideration to accommodate required penetrations.
Are there restrictions on the orientation of blocking? Should it be oriented flatwise or vertically?