Possible Duplicate:
How should I sort this array by key with usort?
I have tried following a lot of hints to sort a list alphabetically on this piece of code with no luck.
<?php
foreach ($this->link_items as &$item) :
?>
<li>
<a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($item->slug, $item->catid)); ?>">
<?php echo $item->title; ?></a>
</li>
<?php endforeach; ?>
I need this list to be sortet before its output.