Respect sorting of records when fetching from database

Resolves: #2
This commit is contained in:
Daniel Siepmann 2020-09-07 15:13:35 +02:00
parent df14ee96a2
commit d974b4607e
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4

View file

@ -194,6 +194,7 @@ class StaticRecordCollection extends AbstractRecordCollection implements Editabl
$queryBuilder->createNamedParameter($this->getIdentifier(), \PDO::PARAM_INT) $queryBuilder->createNamedParameter($this->getIdentifier(), \PDO::PARAM_INT)
) )
) )
->orderBy('sys_collection_entries.sorting')
->execute(); ->execute();
$relatedRecords = []; $relatedRecords = [];
while ($record = $statement->fetch()) { while ($record = $statement->fetch()) {