Issue Feature New Orphaned

#106977SuggestWizardController: Add alphabetic sorting for group fields with multiple tables

Kai Strecker 06/25/25, 15:47 updated 06/25/25, 20:54

Description

The sorting of the suggestions can be controlled with a page tsconfig like this:

TCEFORM.<table>.<field>.suggest.default.orderBy = title asc

Unfortunately, if you have a group field which can have records assigned from multiple tables, this sorting is done per table and therefore does not really work, because the results of the tables are just concatenated after each other. It would be nice, if at least an alphabetic sorting by title could be activated in this case.

My idea is to add a sorting of $resultRows by label before this line: https://github.com/TYPO3/typo3/blob/v13.4.14/typo3/sysext/backend/Classes/Controller/Wizard/SuggestWizardController.php#L194

This multi-table label sorting could also be activated by page tsconfig.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

Fix this issue

Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch

Commit message
[FEATURE] SuggestWizardController: Add alphabetic sorting for group fields with multiple tables Resolves: #106977 Releases: main