Attribute sorting was ignored in product type (#1083)