mirror of
https://github.com/standardebooks/web.git
synced 2025-07-08 15:50:29 -04:00
Fix sort order of collection placeholders with no sequence
This commit is contained in:
parent
e664063f18
commit
9abae874f6
1 changed files with 1 additions and 1 deletions
|
@ -2300,7 +2300,7 @@ final class Ebook{
|
||||||
from Ebooks e
|
from Ebooks e
|
||||||
inner join CollectionEbooks ce using (EbookId)
|
inner join CollectionEbooks ce using (EbookId)
|
||||||
where ce.CollectionId = ?
|
where ce.CollectionId = ?
|
||||||
order by ce.SequenceNumber is null, ce.SequenceNumber, e.EbookCreated asc
|
order by ce.SequenceNumber is null, ce.SequenceNumber, isnull(e.EbookCreated), e.EbookCreated asc
|
||||||
', [$collectionId], Ebook::class);
|
', [$collectionId], Ebook::class);
|
||||||
|
|
||||||
return $ebooks;
|
return $ebooks;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue