mirror of
https://github.com/DanielSiepmann/legacy-collections.git
synced 2024-11-24 02:56:13 +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)
|
$queryBuilder->createNamedParameter($this->getIdentifier(), \PDO::PARAM_INT)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
->orderBy('sys_collection_entries.sorting')
|
||||||
->execute();
|
->execute();
|
||||||
$relatedRecords = [];
|
$relatedRecords = [];
|
||||||
while ($record = $statement->fetch()) {
|
while ($record = $statement->fetch()) {
|
||||||
|
|
Loading…
Reference in a new issue