I write here for an help.

Magento 2.2.1: For a few days I'm using Magento 2, after I used it for a couple of years Magento 1. I am aware of the presence of an important discomfort: attribute values are not sorted alphabetically, but only by order of insertion. It's a serious problem, especially if the variables are so many. How can I fix it?

I tried to follow the other solutions in this forum, but I could not solve it.

Thank you in advance

  • please let me what attributes you want? product/customer ?? Nov 26, 2017 at 11:56
  • Product attribute: e.g., color; manufacture
    – juanmi22
    Nov 26, 2017 at 15:18
  • Do you mean the attribute option?
    – SH-
    Nov 26, 2017 at 15:49
  • Yes, sorry. Not attribute values, but attribute options (e.g., black, white ; apple, samsung, nokia).
    – juanmi22
    Nov 26, 2017 at 18:31

1 Answer 1


The fixes works in Magento 2.1.x but in 2.2.x the classes has been refactored and previous workaround stop working.

Info about the issue here: https://github.com/magento/magento2/issues/7441

  • I hope it will be solved with Magento upcoming updates.
    – juanmi22
    Nov 26, 2017 at 23:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.