Method "getChildren" sort ordering #11310
Labels
Fixed in 2.2.x
The issue has been fixed in 2.2 release line
Fixed in 2.3.x
The issue has been fixed in 2.3 release line
Issue: Clear Description
Gate 2 Passed. Manual verification of the issue description passed
Issue: Confirmed
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed
Issue: Format is valid
Gate 1 Passed. Automatic verification of issue format passed
Issue: Ready for Work
Gate 4. Acknowledged. Issue is added to backlog and ready for development
Reproduced on 2.1.x
The issue has been reproduced on latest 2.1 release
Reproduced on 2.2.x
The issue has been reproduced on latest 2.2 release
Reproduced on 2.3.x
The issue has been reproduced on latest 2.3 release
Preconditions
Bug can be reproduced in every Magento Version. M1 has it, M2 has it. Even M2.2 has it.
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).
Greetings,
Elias
The text was updated successfully, but these errors were encountered: