jQuery - Sorting div contents
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2501789/jquery-sort-divs-according-to-content-of-different-sub-divs">jQuery: Sort div&#39;s according to content of different sub divs</a>  </p>
</blockquote>



<p>Is it possible to sort the contents of div</p>

<pre><code>&lt;div id="sort"&gt;
    &lt;div id="something"&gt;A2&lt;/div&gt;
    &lt;div id="something"&gt;A1&lt;/div&gt;
    &lt;div id="something"&gt;A4&lt;/div&gt;
    &lt;div id="something"&gt;A3&lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>sorted to:</p>

<pre><code>&lt;div id="sort"&gt;
    &lt;div id="something"&gt;A1&lt;/div&gt;
    &lt;div id="something"&gt;A2&lt;/div&gt;
    &lt;div id="something"&gt;A3&lt;/div&gt;
    &lt;div id="something"&gt;A4&lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>Anything like this????</p>

<pre><code>$('#sort').sort();
</code></pre>
