Skip to content
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

Method "getChildren" sort ordering #350

Closed
EliasKotlyar opened this issue Oct 9, 2017 · 0 comments
Closed

Method "getChildren" sort ordering #350

EliasKotlyar opened this issue Oct 9, 2017 · 0 comments

Comments

@EliasKotlyar
Copy link
Contributor

EliasKotlyar commented Oct 9, 2017

Issue is described here:
magento/magento2#11310

This issue happens in all Magento Versions.

Steps to reproduce
Create a Code which will call the following Class:
M1: Mage_Catalog_Model_Resource_Category_Flat
M2: Magento\Catalog\Model\ResourceModel\Category\Flat

With the following Method:
getChildren()

Expected result
You will get a list of Ids of the children categories.
This list is sorted by the "position" attribute.

Actual result
You will get a list of Ids of the Children Categories.
This list is sorted by entity-id attribute.

I dont see any special case where you would need the sorting by the entity_id. More usual you will need them sorted in the same order as in the Backend(by the position attribute).

edannenberg pushed a commit to edannenberg/magento-lts that referenced this issue Dec 6, 2018
Categories returned by getChildren() should be sorted by position.

refs: OpenMage#350
edannenberg pushed a commit to edannenberg/magento-lts that referenced this issue Feb 14, 2019
Categories returned by getChildren() should be sorted by position.

refs: OpenMage#350
fplantinet pushed a commit to fplantinet/magento-lts that referenced this issue Mar 27, 2019
edannenberg pushed a commit to edannenberg/magento-lts that referenced this issue Apr 1, 2019
Categories returned by getChildren() should be sorted by position.

refs: OpenMage#350
edannenberg pushed a commit to edannenberg/magento-lts that referenced this issue Aug 22, 2019
Categories returned by getChildren() should be sorted by position.

refs: OpenMage#350
edannenberg pushed a commit to edannenberg/magento-lts that referenced this issue Oct 25, 2019
Categories returned by getChildren() should be sorted by position.

refs: OpenMage#350
edannenberg pushed a commit to edannenberg/magento-lts that referenced this issue Aug 20, 2020
Categories returned by getChildren() should be sorted by position.

refs: OpenMage#350
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants