title: How do I change Bootstrap 3 column order on mobile layout?
body: <p>I'm making a responsive layout with a top fixed navbar.  Underneath I have two columns, one for a sidebar (3), and one for content (9).  Which on desktop looks like this</p>
  <blockquote>
  <p>navbar<br />
  [3][9]</p>
  </blockquote>
  <p>When I <code>resize</code> to mobile the <code>navbar</code> is compressed and hidden, then the sidebar is stacked on top of the content, like this:</p>
  <blockquote>
  <p>navbar<br />
  [3]<br />
  [9]</p>
  </blockquote>
  <p>I would like the main content at the top, so I need to change the order on mobile to this:</p>
  <blockquote>
  <p>navbar<br />
  [9]<br />
  [3]</p>
  </blockquote>
  <p>I found <a href="https://stackoverflow.com/questions/18057270/column-ordering-in-twitter-bootstrap-3">this article</a> which covers the same points, but the accepted answer has been edited to say that the solution no applies to the current version of Bootstrap.</p>
  <p>How can I reorder these columns on mobile?  Or alternatively, how can I get the sidbar list-group into my expanding navbar?</p>
  <p>Here is my code:</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-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;!-- Latest compiled and minified CSS --&gt;
  &lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"&gt;
  
  &lt;!-- Optional theme --&gt;
  &lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous"&gt;
  
  &lt;!-- Latest compiled and minified JavaScript --&gt;
  &lt;script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"&gt;&lt;/script&gt;
  
  &lt;div class="navbar navbar-inverse navbar-static-top"&gt;
    &lt;div class="container"&gt;
      &lt;a href="#" class="navbar-brand"&gt;Brand Title&lt;/a&gt;
      &lt;button class="navbar-toggle" data-toggle="collapse" data-target=".navHeaderCollapse"&gt;
        &lt;span class="icon-bar"&gt;&lt;/span&gt;
        &lt;span class="icon-bar"&gt;&lt;/span&gt;
        &lt;span class="icon-bar"&gt;&lt;/span&gt;
      &lt;/button&gt;
      &lt;div class="collapse navbar-collapse navHeaderCollapse"&gt;
  
      &lt;ul class="nav navbar-nav navbar-right"&gt;&lt;!--original navbar--&gt;
        &lt;li class="active"&gt;&lt;a href="#"&gt;Home&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;FAQ&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
  
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;&lt;!--End Navbar Div--&gt;
      &lt;div class="container"&gt;
    &lt;div class="row"&gt;
  
      &lt;div class="col-lg-3"&gt;
    &lt;div class="list-group"&gt;
      &lt;a href="#" class="list-group-item"&gt;
      &lt;h4 class="list-group-item-heading"&gt;Lorem ipsum&lt;/h4&gt;
      &lt;p class="list-group-item-text"&gt;Lorem Ipsum is simply dummy text.&lt;/p&gt;&lt;/a&gt;
    &lt;/div&gt;
  &lt;/div&gt;&lt;!--end sidebar--&gt;
  
  
  &lt;div class="col-lg-9"&gt;
    &lt;div class="panel panel-default"&gt;
      &lt;div class="panel-body"&gt;
        &lt;div class="page-header"&gt;
       Main Content
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;&lt;!--end main content area--&gt;</code></pre>
  </div>
  </div>
  </p>