正解はflex-directionです。row(横並び・デフォルト)、column(縦並び)、row-reverse(横並び逆順)、column-reverse(縦並び逆順)を指定できます。flex-wrapで折り返し、flex-flowでdirectionとwrapを同時に指定できます。