Issue Task Resolved

#110630Remove redundant sorting in ReferenceIndex

Wouter Wolters 09/04/26, 19:17 updated 09/07/26, 08:35

Description

ReferenceIndex::updateIndex() sorts the table names returned by
TcaSchemaFactory::all()->getNames().

The schema collection is already built in alphabetical order by
TcaSchemaBuilder::buildFromStructure(), which sorts the complete TCA before
creating the schemas. This ordering is also covered by the existing
TcaSchemaTest.

The additional sort() and its related TODO comment are therefore redundant
and can be removed.

This is a code cleanup without behavioral changes.

Reviews 2

History 14

  1. Wouter Wolters commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-09-07T08:35:11+00:00" > 09/07/26, 08:35 </span>

    Applied in changeset commit:6c2b40f594aadf020777ab662146d900f67f473c.