title: jquery filter via highest number desc
body: <p>Hi all is this possible.</p>
  
  <p>I am looking to setup a jquery filter could i filter the follow list like this.</p>
  
  <pre><code>&lt;ul&gt;
  &lt;li class="5"&gt; filter&lt;/li&gt;
  &lt;li class="6"&gt; filter&lt;/li&gt;
  &lt;li class="1"&gt; filter&lt;/li&gt;
  &lt;li class="5"&gt; filter&lt;/li&gt;
  &lt;li class="2"&gt; filter&lt;/li&gt;
  &lt;li class="4"&gt; filter&lt;/li&gt;
  &lt;li class="7"&gt; filter&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>so after running the filter the outcome would be.</p>
  
  <pre><code>&lt;ul&gt;
  &lt;li class="7"&gt; filter&lt;/li&gt;
  &lt;li class="6"&gt; filter&lt;/li&gt;
  &lt;li class="5"&gt; filter&lt;/li&gt;
  &lt;li class="4"&gt; filter&lt;/li&gt;
  &lt;li class="3"&gt; filter&lt;/li&gt;
  &lt;li class="2"&gt; filter&lt;/li&gt;
  &lt;li class="1"&gt; filter&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>i dont now how to filter by number.</p>
  
  <pre><code>&lt;select id="filter" name="filter"&gt;
  &lt;option value="---"&gt;---&lt;/option&gt;
  &lt;option value="viewed"&gt;filter by most viewed&lt;/option&gt;
  &lt;option value="liked"&gt;filter by most liked&lt;/option&gt;
  &lt;/select&gt;
  
  $('#filter').change(function() {
  
           var val = $(this).val();
  
           if(val == 'viewed'){
  
                //dont now what to do here is it possibble
  
           }
  
  
           return false;   
  });
  </code></pre>
  
  <p>Thanks</p>