Bug #70498

The CategoryRepository should obey the sorting field

Added by Sebastian Michaelsen over 4 years ago. Updated 2 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2015-10-08
Due date:
% Done:

0%

TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Needs Decision

Description

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
    );

History

#1 Updated by Georg Ringer 3 months ago

  • Sprint Focus set to PRC

#2 Updated by Benni Mack 2 months ago

  • Sprint Focus changed from PRC to Needs Decision

#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.

#4 Updated by Georg Ringer 2 months ago

  • Status changed from Needs Feedback to Closed

Also available in: Atom PDF