The CategoryRepository should obey the sorting field
sys_category records have a sorting field but CategoryRepository ignores it by default.
This is missing in the CategoryRepository:
/** * @var array */ protected $defaultOrderings = array( 'sorting' => QueryInterface::ORDER_ASCENDING );
#3 Updated by Georg Ringer 2 months ago
- Status changed from New to Needs Feedback
I have checked that and yes, there is no default sorting but the sorting column itself doesn't help you much as you need the parent column as well.
Given the tree
- Cat 1 -- Cat 1.a -- Cat 1.b - Cat 2 -- Cat 2.a
if you need to render that, you need to first build the tree and only within the same level AND same parent node, the sorting column can be used.
Therefore I am closing this issue.