Order Divs Based on an attribute value in Jquery
<p>I have several divs like this</p>

<pre><code>&lt;div rel="5"&gt;
  Divs content goes here
&lt;/div&gt;
&lt;div rel="3"&gt;
   Div 3 Here
&lt;/div&gt;
&lt;div rel="4"&gt;
  Div 4 Here
 &lt;/div&gt;
 &lt;div rel="4.5"&gt;
   Div 4.5 here
&lt;/div&gt;
</code></pre>

<p>How would you use Jquery to sort the divs so that physically in the DOM they are sorted with the least rel attribute first?</p>

<p>e.g.
3, 4, 4.5, 5</p>
