witam
Mam problem z posortowaniem wyników z tej części kodu:
<?php foreach ($_associatedProducts as $_item): ?>
<?php if ($_item->isSaleable()) : ?>
<?php $_finalPriceInclTax = $this->helper('tax')->getPrice($_item, $_item->getFinalPrice(), true) ?>
<tr>
<td><span style="font-size: 8pt;">
<?php echo $this->htmlEscape($_item->getName()) ?></span></td>
<td class="a-right"><span style="font-size: 8pt;">
<?php echo $this->getPriceHtml($_item, true) ?> <?php echo $this->getTierPriceHtml($_item) ?> </span></td>
<?php if ($_product->isSaleable()): ?>
<td class="a-center">
<?php if ($_item->isSaleable()) : ?>
<input type="text" name="super_group[
<?php echo $_item->getId() ?>]" maxlength="12" value="
<?php echo $_item->getQty()*1 ?>" title="
<?php echo $this->__
('Qty') ?>" class="input-text qty" />
<?php else: ?>
<p class="availability out-of-stock"><span>
<?php echo $this->__
('Brak') ?></span></p>
<?php endif; ?>
</td>
<?php endif; ?>
</tr>
<?php endif; ?>
<?php endforeach; ?>
chciałbym żeby to było sortowane po
$_item->getName()
a nie po ID.
Jak to zrobić?