Important: Unordered profile queries now order by uid
Description
Four query paths of this extension executed without any ordering, so the order of their result was whatever the database happened to yield:
ProfileRepository:: find All () Profilewhenever the demand yields no ordering, which is what No sorting in the Sort By option of the list plugin meansRepository:: find By Demand () Location,Repository:: find All () FunctionandType Repository:: find All () Organisational, which fill the location, function type and organisational unit selects of the contract form inUnit Repository:: find All () EXT:academic_ persons_ edit
All four now order by
uid
ascending when nothing else asks for an order.
Impact
No visible change is expected on SQLite, MySQL and MariaDB. They returned
insertion order for these queries in practice, and
uid
ascending is that
same order, guaranteed now rather than coincidental. PostgreSQL promised no
order at all.
What changes is that the order is reproducible. It previously depended on the
database, its version and which indexes existed, and could therefore change
under an installation without any content change. An index an installation
adds itself, for example over
t3ver_, can give the PostgreSQL planner
another way to read these tables and reverse the result of exactly these
queries.
The TCA
default_ of the location, function type and organisational
unit tables still does not apply to their
find. That was never
the case and is not changed here. It orders the record lists of the backend,
not the selects of the frontend edit form.
Affected Installations
Every installation of this extension. An installation that already sets a sorting on the list plugin is unaffected either way, because an explicit ordering always won.