title: Php list to be sortet alphabetically
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/5915682/how-should-i-sort-this-array-by-key-with-usort">How should I sort this array by key with usort?</a>  </p>
  </blockquote>
  
  
  
  <p>I have tried following a lot of hints to sort a list alphabetically on this piece of code with no luck.</p>
  
  <pre><code>&lt;?php
  foreach ($this-&gt;link_items as &amp;$item) :
  ?&gt;
  &lt;li&gt;
  &lt;a href="&lt;?php echo JRoute::_(ContentHelperRoute::getArticleRoute($item-&gt;slug, $item-&gt;catid)); ?&gt;"&gt;
              &lt;?php echo $item-&gt;title; ?&gt;&lt;/a&gt;
  &lt;/li&gt;
  &lt;?php endforeach; ?&gt;
  </code></pre>
  
  <p>I need this list to be sortet before its output.</p>