次のコードを使用してカテゴリとサブカテゴリをドロップダウン メニューに表示していますが、サブカテゴリをアルファベット順に並べ替えたいのですが、どうすればよいですか?
<ul id="custom-menu">
<li><a href="http://www.mobiledistributorsupply.com"><b>Home</b></a></li>
<?php $_helper = Mage::helper('catalog/category') ?>
<?php $_categories = $_helper->getStoreCategories() ?>
<?php $currentCategory = Mage::registry('current_category') ?>
<?php if (count($_categories) > 0): ?>
<ul style="width:940px;">
<?php foreach($_categories as $_category): ?>
<li>
<b><a class="drop" href="<?php echo $_helper->getCategoryUrl($_category) ?>">
<?php echo $_category->getName() ?>
</a></b>
<?php $_category = Mage::getModel('catalog/category')->load($_category->getId()) ?>
<?php $_subcategories = $_category->getChildrenCategories() ?>
<?php if (count($_subcategories) > 0): ?>
<div class="dropdown_1column" style="width:235px;">
<?php foreach($_subcategories as $_subcategory): ?>
<div class="col_1">
<a href="<?php echo $_helper->getCategoryUrl($_subcategory) ?>">
<?php echo $_subcategory->getName() ?>
</a>
</div>
<?php endforeach; ?>
<div class="clr" clear="all"></div>
</div>
<?php endif; ?>
</li>
<?php endforeach; ?>
<li class="normal"><a href="/products/onsale"><b>Sale</b></a></li>
<li class="normal"><a href="/customer-service"><b>Help</b></a></li>
<li class="normal"><a href="/customer/account/create/"><b>Open Account</b></a></li>
</ul>
<?php endif; ?>