I can confirm this is a bug also in 1.2.1.2, after adding products the sort by function will be wrong again. you have to go into the cache management and refresh the “Layered Navigation Indices” for the sorting to be corrected.
Can anyone advise a fix? I would rather not have to
upgrade as the rest of the site is working as expected
and an upgrade is sure to break something else.
I have the same problem. I try to edit List.php, but there is no solution. How to fix this? Refreshing the cache not solving the problem, and this problem show up when I refresh “Layered Navigation Indices”.
I’ve cleared the cache and re-edited my products, but the sort by price still broken.
I’ve also noticed that the price is no more displayed in the navigation search box (the “range price” box is missing), while the “special price” is available.
$this->getSelect()->joinLeft( array('_price_order_table'=>$this->getTable('catalogindex/price')), "{$entityCondition} AND {$storeCondition} AND {$groupCondition} AND {$attributeCondition}", array() );
to:
$this->getSelect()->joinLeft( array('_price_order_table'=>$this->getTable('catalogindex/price')), "{$entityCondition} AND {$storeCondition} AND {$attributeCondition}", array() );
This resolved all the problems with the price sorting for me.