Skip to content

Commit

Permalink
Merge pull request #1424 from lat9/attribute-sort-order
Browse files Browse the repository at this point in the history
Attribute option sort ordering
  • Loading branch information
drbyte committed Apr 24, 2017
2 parents 5c5017e + c603c1b commit 2b17800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/modules/attributes.php
Expand Up @@ -31,7 +31,7 @@

if ($pr_attr->fields['total'] > 0) {
if (PRODUCTS_OPTIONS_SORT_ORDER=='0') {
$options_order_by= ' order by LPAD(popt.products_options_sort_order,11,"0")';
$options_order_by= ' order by LPAD(popt.products_options_sort_order,11,"0"), popt.products_options_name';
} else {
$options_order_by= ' order by popt.products_options_name';
}
Expand Down

0 comments on commit 2b17800

Please sign in to comment.