From ffad7bb6d5ac5bce2d492f486def7bb856786ea1 Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Mon, 22 Mar 2021 10:17:11 +0100 Subject: [PATCH] [DOCS] Replace none working orderBy example The given example does not work and is replaced by a working example. Doctrine will add ASC as fallback sorting if no sorting direction is given, leading to an invalid SQL. Resolves: #93795 Releases: master, 10.4, 9.5 Change-Id: I69f594b4e0ec65586d53ee7f1348c987234a4d19 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/68538 Tested-by: TYPO3com Tested-by: core-ci Tested-by: Daniel Goerz Reviewed-by: Daniel Goerz --- Classes/DataProcessing/DatabaseQueryProcessor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/DataProcessing/DatabaseQueryProcessor.php b/Classes/DataProcessing/DatabaseQueryProcessor.php index ef33886cf..692b59949 100644 --- a/Classes/DataProcessing/DatabaseQueryProcessor.php +++ b/Classes/DataProcessing/DatabaseQueryProcessor.php @@ -31,7 +31,7 @@ * table = tt_address * pidInList = 123 * where = company="Acme" AND first_name="Ralph" - * orderBy = RAND() + * orderBy = sorting DESC * as = addresses * dataProcessing { * 10 = TYPO3\CMS\Frontend\DataProcessing\FilesProcessor