title: How to sort LI's based on their ID
body: <p>Trying a bunch of solutions with no workable results. I have code that takes the value of the span and creates an ID for the LI. I then want to sort these LI's DESCENDING based on the LI's ID. Help? Thanks!</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;ul id="dumb"&gt;
      &lt;li&gt;cello&lt;span&gt;2987&lt;/span&gt;&lt;/li&gt;
      &lt;li&gt;zello&lt;span&gt;1723&lt;/span&gt;&lt;/li&gt;
      &lt;li&gt;aello&lt;span&gt;3476&lt;/span&gt;&lt;/li&gt;
  &lt;/ul&gt;
  &lt;script type='text/javascript' src='JQUERY INCLUDE'&gt;&lt;/script&gt; 
  &lt;script type="text/javascript"&gt; 
  $(document).ready(function() {
      $('ul li span').each(function(){
          var pubValue = $(this).html();
          $(this).parent().attr('id', pubValue);
      });
  });
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>