title: Find 2nd and 3rd highest number Jquery
body: <p>I am busy creating a podium type screen which will identify which person has the highest score and then place them into their relative positions. </p>
  
  <p>Example: Given this Table: </p>
  
  <pre><code>+-------+-------+
  | name  | score |
  +-------+-------+
  | Mike  |     3 |
  | Kevin |    14 |
  | John  |     6 |
  +-------+-------+
  </code></pre>
  
  <p>Kevin would be the winner with John being second and Mike 3rd.</p>
  
  <p>How would I get to this conclusion using Jquery? I have managed to trawl the internet and find out who has the highest score and then get his / her name. But I am now stuck on finding out who is 2nd and who comes third.</p>
  
  <p>This is what I have so far:</p>
  
  <pre><code>   $( document ).ready(function() {
  
          var max = 0;
          var name;
          $('#HoldingPodiumData, .score').each(function()
          {
             $this = parseFloat( $(this).html() );
             if ($this &gt; max)
             {
                 max = $this;
                 //name = $('.names').html();
                 name = $(this).closest('td').prev('td').html()
             }
  
  
          });
          alert(max);
          alert(name);
          $("#winner").html(name);
  
      });
  </code></pre>
  
  <p>Could anyone help me in the right direction please? I have created a <a href="http://jsfiddle.net/97Gbg/2/" rel="nofollow">FIDDLE</a> of what I have achieved thus far</p>
  
  <p>Thanks!
  Mike</p>