---
title: "Feature: #78523 - Suggest wizard provides option to define ordering of results"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:feature-78523"
source: "Changelog/8.5/Feature-78523-SuggestWizardProvidesOptionToDefineOrderingOfResults.rst"
typo3-version: "8.5"
typo3-major: 8
type: "feature"
issue: 78523
forge: "https://forge.typo3.org/issues/78523"
tags: ["Backend", "TCA"]
rendered: "2026-09-20T18:31:11+00:00"
---

# Feature: #78523 - Suggest wizard provides option to define ordering of results {#feature-78523}

See [forge#78523](https://forge.typo3.org/issues/78523)

## Description {#description}

It is now possible to set the ordering of results delivered by the suggest wizard.

The new option is called php:`orderBy => 'somefield ASC'` and can hold the usual SQL order-by definition.

Example TCA configuration for `EXT:news` suggest wizard returning the related articles sorted by datetime:

```php
'config' => [
    'type' => 'group',
    'internal_type' => 'db',
    'allowed' => 'tx_news_domain_model_news',
    'foreign_table' => 'tx_news_domain_model_news',
    'MM_opposite_field' => 'related_from',
    'size' => 5,
    'minitems' => 0,
    'maxitems' => 100,
    'MM' => 'tx_news_domain_model_news_related_mm',
    'wizards' => [
        'suggest' => [
            'type' => 'suggest',
            'default' => [
                'searchWholePhrase' => true,
                'addWhere' => ' AND tx_news_domain_model_news.uid != ###THIS_UID###',
                'orderBy => 'datetime DESC',
            ]
        ],
    ],
]
```
