Tested on: 2.3+
Adds new CLI Command (mageguide:sort:options) that takes an argument (any multiselect product attribute) and sorts the attribute's options alphabetically.
- Console Command
- SortAlpabetically
- Upload module files in
app/code/MageGuide/AttributeOptionsSort
- Install module
$ php bin/magento module:enable MageGuide_AttributeOptionsSort
$ php bin/magento setup:upgrade
$ php bin/magento setup:di:compile
- Run CLI Command
$ php bin/magento mageguide:sort:options -o "<attribute_name>"
Magento Admin Sorted Options