title: jQuery - Sorting div contents
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://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>