title: jquery reverse array
body: <p>I have the following snippet which returns some youtube id's.
  Now I want to reverse the output (because now it is the last first)</p>
  
  <pre><code>if (options.slideshow) {
  var links = [];
  var $lis = holder.parents('#yt_holder').find('li');
  var $as = $lis.children('a');
  for(var count = $lis.length-1, i = count; i &gt;= 0; i--){
      links.push(youtubeid($as[i].href));
      }
   slideshow = '&amp;playlist=' + links + '';
   alert(slideshow);
  }
  </code></pre>
  
  <p>I tried .reverse() but some items seems to be missing then</p>
  
  <pre><code>links.reverse().push(youtubeid($as[i].href));
  </code></pre>
  
  <p>Any help will be appreciated.
  Ceasar</p>