When using the filter add-on for EasyStore in SP PageBuilder, I noticed my variants are appearing in some random order... e.g. I'm using sizes, instead of appearing like XS, S, M, L, XL, it just appeared like XL, S, L, M, XS
I digged down a bit into the code and could see that in :
components/com_easystore/src/Helper/FilterHelper.php
this method : FilterHelper::getVariants()
is basically doing :
->order($db->quoteName('options.name') . ' ' . $ordering) ->group('values.name');
so it's absolutely NOT sorting variants based on attribute_values.ordering
I currently worked-around that on my own by creating overrides for the filter and basicfilter so I'm basically reordering those before display, but it would be good if this could be corrected in core components files.
Even better would be if we could reorder variants from the admin interface, but that's more of a feature request.
Thanks