#21381Optimize some database indexes
Description
Some database indexes in TYPO3 tables are not optimal: they include sorting field in the wrong position. MySQL will not use such index for sorting (sorting field must always be in the end of index).
(issue imported from #M12367)