Merge pull request #3 from DanielSiepmann/feature/respect-sorting-in-db

Respect sorting of records when fetching from database
This commit is contained in:
Benni Mack 2021-03-15 12:45:11 +01:00 committed by GitHub
commit 037567b947
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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