Prodcut option list sorting problem

Thanks in advance.

I am trying to sort the option list of product item by its variant name. I changed the sql query in function fn_get_selected_product_options and fn_get_selected_product_options in core/fn.catalog.php file but I didn’t help me.

can anybody help me where should I make change for sorting in product option.


You can check also in core/fn.catalog.php, for the fn_get_products( …, ) function. Inside is an array called $sortings

// Define sort fields

$sortings( …

Maybe is something related.

In that function a made a custom sort for one of my category.

Good luck.