Shopp:如何按slug排序类别

I need to display categories sorted by slug. can anyone help me?

This is my code so far:

 <?php if(shopp('catalog','has-categories')): ?>
 <ul class="products">
    <li class="row">
        <ul>
        <?php while(shopp('catalog','categories')): ?>
            <li class="product">
                <div class="frame">
                    <a href="<?php shopp('category','url'); ?>"><?php shopp('category','coverimage','setting=thumbnails'); ?></a>
                    <a href="<?php shopp('category','url'); ?>" class="category-link"><h3><?php shopp('category','name'); ?></h3></a>
                </div>
            </li>
        <?php endwhile; ?>
        </ul>
    </li>
  </ul>
<?php endif; ?>

Another approach would be something like

$categories = shopp('storefront.category-list','load=true&orderby=slug');
foreach ($categories as $category){
   // the category markup code goes here
}

You'll have to add some li and ul tags

if you just need a linked list use

shopp('storefront.category-list','orderby=slug');