How to left Navigation Ascending order in Magento?
It is very simple. Please go to \app\design\frontend\default\<Your_theme>\template\catalog\navigation\left.phtml
Just copy and paste. Hope it will work. If you have any query please comments.
<?php if (!Mage::registry(‘current_category’)) return ?>
<?php $_categories = $this->getCurrentChildCategories() ?>
<?php $_count = is_array($_categories)?count($_categories):$_categories->count(); ?>
<?php if($_count): ?>
<div>
<div>
<dl id=”narrow-by-list2″>
<dt><?php echo $this->__(‘Category’) ?></dt>
<dd>
<?php $temp = array();
$countVal = array();
?><?php foreach ($_categories as $_category): ?>
<?php if($_category->getIsActive()):
$url = $this->getCategoryUrl($_category);
$temp[“$url”] = trim($this->htmlEscape($_category->getName()));
$countVal[“$url”] = $_category->getProductCount();
?><?php endif; ?>
<?php endforeach ?>
<?php asort($temp); ?>
<ol><?php foreach ($temp as $_item => $val): ?>
<?php if($_category->getIsActive()): ?>
<li>
<a href=”<?php echo $_item ?>”<?php if ($this->isCategoryActive($_category)): ?><?php endif; ?>> <?php echo $val ?></a> ( <?php echo $countVal[$_item]; ?>)
</li>
<?php endif; ?><?php endforeach ?>
</ol>
</dd>
</dl>
<script type=”text/javascript”>decorateDataList(‘narrow-by-list2’)</script>
</div>
</div>
<?php endif; ?>