diff --git a/admin/sources/products.options.inc.php b/admin/sources/products.options.inc.php index e828f5a98..15e42367c 100755 --- a/admin/sources/products.options.inc.php +++ b/admin/sources/products.options.inc.php @@ -250,7 +250,7 @@ ); } ## Get all values (middle) - $values = $GLOBALS['db']->select('CubeCart_option_value', false, false, 'IF(priority>0, priority, value_id) ASC'); + $values = $GLOBALS['db']->select('CubeCart_option_value', false, false, array('priority' => 'ASC', 'value_name' => 'ASC')); if ($values) { foreach ($values as $value) { if (isset($optionArray[$value['option_id']])) {