mirror of
https://github.com/DanielSiepmann/legacy-collections.git
synced 2024-12-21 17:16:10 +01:00
Merge pull request #3 from DanielSiepmann/feature/respect-sorting-in-db
Respect sorting of records when fetching from database
This commit is contained in:
commit
037567b947
1 changed files with 1 additions and 0 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Reference in a new issue