Skip to content

Fix product collection sort order to use option sort order. #133

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

colinmollenhour
Copy link

Currently when you sort a product collection by a 'select' attribute the products are sorted by the attribute option labels. This pull request changes that to sort by the attribute option sort_order field.

Note, a similar patch works on Magento 1.x (using in production, queries are fast and indexed, confirmed with EXPLAIN), but I have not tested this code with Magento 2.

@magento-team
Copy link
Contributor

Hello. Thanks for the suggestion. Fix has been added into the internal repository.

Code changes will be available after one of the next code publications to the GitHub from the internal repository.

Closing as complete.

vpelipenko added a commit that referenced this pull request Mar 23, 2015
magento-cicd2 pushed a commit that referenced this pull request Jul 11, 2016
@colinmollenhour colinmollenhour deleted the fix-option-sort branch September 29, 2016 16:57
magento-engcom-team added a commit that referenced this pull request Nov 16, 2018
 - Merge Pull Request magento/graphql-ce#133 from magento/graphql-ce:complexity-limiter
 - Merged commits:
   1. 6a68bd8
   2. 660e393
   3. 351ae37
   4. 9aedd10
   5. 88fb398
   6. 99b1d1d
   7. 335c173
   8. ce50f48
   9. b1227fc
   10. b91f5c8
   11. fc80a85
   12. 9302a4f
   13. 0a4e959
   14. e47e861
   15. 1847c71
   16. 6392294
   17. 4328497
   18. 889824e
magento-engcom-team pushed a commit that referenced this pull request Jul 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants