title: How can I reorder elements with JavaScript?
body: <p>How would I go about reordering divs without altering the HTML source code?</p>
  
  <p>example, I want divs to appear in order #div2, #div1, #div3, but in the HTML they are:</p>
  
  <pre><code>&lt;div id="#div1"&gt;&lt;/div&gt;  
  &lt;div id="#div2"&gt;&lt;/div&gt;  
  &lt;div id="#div3"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>Thanks!</p>