[BUGFIX] PHP Warning: asort() expects an array

Change-Id: Ia4f21625c98b7c8206354e2fb1db5e8d62ad16f1
Fixes: #57734
Reviewed-on: https://review.typo3.org/29274
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers