---
title: "Important: Partner queries are ordered deterministically"
manual: "Academic Partners"
version: "main"
source: "Changelog/3.0/Important-PartnerQueriesAreOrderedDeterministically.rst"
modified: "2026-09-17T07:34:13+00:00"
---

# Important: Partner queries are ordered deterministically

## Description

Every query of this extension executed without an ordering, so the order of its
result was whatever the database happened to yield. On PostgreSQL that is not
the same list twice: the partnership teaser rendered a different partner on two
renders of the same data. The queries now order explicitly:

-   `PartnershipRepository::findByPid()` — the source of every partnership
    list and teaser — orders by the manual backend `sorting` (TCA ctrl
    `sortby`), with `uid` settling ties.
-   `PartnerRepository::findAll()` and `findGeoLocated()` order by
    the backend `sorting` of the page records, with `uid` settling
    ties — partner records are pages, so among siblings this is the order the
    editor arranged in the page tree; partners spread over several parent
    pages interleave deterministically by that same value.
-   `PartnerRepository::findNextForGeolocation()` processes the geocoding
    queue oldest record first (`uid` ascending) instead of letting the
    database pick.
-   `PartnerRepository::findByDemand()` appends `uid` as a tiebreaker
    to the ordering the plugin demands, so records equal in that ordering — two
    partners with the same title, for example — keep a stable relative order.

## Impact

Partnership lists and teasers now render in the order the records have in the
backend. An installation whose editors reordered partnership records will see
the frontend follow that order — which is the order the editor expressed, but
was never delivered before. Everything else keeps its practical order: the
backend page sorting and `uid` ascending are what every supported
database returned in practice, they are simply guaranteed now rather than
coincidental.

## Affected Installations

Every installation of this extension.
