Skip to content
Snippets Groups Projects
Commit 9eaa5a0c authored by Georg Ringer's avatar Georg Ringer
Browse files

[BUGFIX] Allow integers as sort value in ArrayUtility::sortArraysByKey

Cast the value to strings before using strcasecmp for sorting.
This allows to use integers for sorting the array.

Resolves: #102573
Releases: main, 12.4
Change-Id: I2dea688e6e5a24e7292a1fede2ca294f8bbd3347
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/84631


Reviewed-by: default avatarGarvin Hicking <gh@faktor-e.de>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarGarvin Hicking <gh@faktor-e.de>
Reviewed-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Tested-by: default avatarcore-ci <typo3@b13.com>
parent 8c9e7d87
Branches
Tags
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment