title: Reverse order of foreach list items
body: <p>I would like to reverse the order of this code's list items. Basically it's a set of years going from oldest to recent and I am trying to reverse that output.</p>
  
  <pre><code>&lt;?php
      $j=1;     
      foreach ( $skills_nav as $skill ) {
          $a = '&lt;li&gt;&lt;a href="#" data-filter=".'.$skill-&gt;slug.'"&gt;';
          $a .= $skill-&gt;name;                 
          $a .= '&lt;/a&gt;&lt;/li&gt;';
          echo $a;
          echo "\n";
          $j++;
      }
  ?&gt;  
  </code></pre>