Skip to content

Commit

Permalink
[DOCS] Replace none working orderBy example
Browse files Browse the repository at this point in the history
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 <[email protected]>
Tested-by: core-ci <[email protected]>
Tested-by: Daniel Goerz <[email protected]>
Reviewed-by: Daniel Goerz <[email protected]>
  • Loading branch information
DanielSiepmann authored and ervaude committed Mar 22, 2021
1 parent 0ec539e commit ffad7bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/DataProcessing/DatabaseQueryProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ffad7bb

Please sign in to comment.