diff --git a/app/code/Mage/CatalogRule/Model/Resource/Rule.php b/app/code/Mage/CatalogRule/Model/Resource/Rule.php index 47ab182309a53..c1b5d73d9bc4f 100644 --- a/app/code/Mage/CatalogRule/Model/Resource/Rule.php +++ b/app/code/Mage/CatalogRule/Model/Resource/Rule.php @@ -670,7 +670,8 @@ public function getRulesFromProduct($date, $websiteId, $customerGroupId, $produc ->where('customer_group_id = ?', $customerGroupId) ->where('product_id = ?', $productId) ->where('from_time = 0 or from_time < ?', $date) - ->where('to_time = 0 or to_time > ?', $date); + ->where('to_time = 0 or to_time > ?', $date) + ->order('sort_order asc'); return $adapter->fetchAll($select); }