title: How to change order of elements in a flexbox column?
body: <p>When elements are sorted by column, they go down the left column and then down the right.</p>
  
  <p>How do you configure flexbox to display elements going down vertically rather than in columns?</p>
  
  <p>e.g. I want the bottom configuration here, not the top:</p>
  
  <p><a href="https://i.stack.imgur.com/VE2bc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VE2bc.png" alt="enter image description here"></a></p>
  
  <p>I've looked into <code>flex-direction</code> with no success. Is this even possible with flexbox?</p>
  
  <p>I have this currently:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>#flex-container {
    background-color: #000;
    width: 100%;
    -webkit-column-count: 2;
    -moz-column-count: 2;
    column-count: 2;
    text-align: center;
  }
  .flex-element {
    display: inline-block;
    width: 100%;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    break-inside: avoid;
    -webkit-column-gap: 10px;
    margin-bottom: 10px;
    background-color: #fff;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="flex-container"&gt;
    &lt;div class="flex-element"&gt;
      &lt;p&gt;1&lt;/p&gt;
    &lt;/div&gt;
    &lt;div class="flex-element"&gt;
      &lt;p&gt;2&lt;/p&gt;
    &lt;/div&gt;
    &lt;div class="flex-element"&gt;
      &lt;p&gt;3&lt;/p&gt;
    &lt;/div&gt;
    &lt;div class="flex-element"&gt;
      &lt;p&gt;4&lt;/p&gt;
      &lt;p&gt;--&lt;/p&gt;
    &lt;/div&gt;
    &lt;div class="flex-element"&gt;
      &lt;p&gt;5&lt;/p&gt;
      &lt;p&gt;--&lt;/p&gt;
      &lt;p&gt;--&lt;/p&gt;
    &lt;/div&gt;
    &lt;div class="flex-element"&gt;
      &lt;p&gt;6&lt;/p&gt;
    &lt;/div&gt;
    &lt;div class="flex-element"&gt;
      &lt;p&gt;7&lt;/p&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><a href="https://jsfiddle.net/ckecz95r/" rel="nofollow noreferrer">https://jsfiddle.net/ckecz95r/</a></p>