I'm trying to sort options of attributes in alphabetic order. For example we have attribute "color" and there is options:

1) attr
2) bttr
3) attr2

I need to sort this options like:

1) attr
2) attr2
3) bttr

I did this modifications (How to sort layered navigation attributes on Alphabetic order) in /public_html/vendor/magento/module-eav/Model/ResourceModel/Entity/Attribute/Option (yes i know that modification of vendor folders is bad idea, but if my edits doesn't work in main file, then there is no sense to make plugin).
I also tried this Magento 2 :Sort Attributes Alphabetically in layered Navigation None of this helped me, any idea will be appreciated

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.