Properly sort chapters of same manga in updates

In case chapters of the same manga had been fetched at the same time, they were sorted by their source order ascending instead of descending, which caused the newest chapter of that manga to be farther down instead of being the first
This commit is contained in:
schroda
2024-07-28 22:24:50 +02:00
parent e1e2cbc679
commit 3065e80b36
2 changed files with 5 additions and 2 deletions

View File

@@ -2409,7 +2409,10 @@ export class RequestManager {
GET_CHAPTERS_UPDATES,
{
filter: { inLibrary: { equalTo: true } },
order: [{ by: ChapterOrderBy.FetchedAt, byType: SortOrder.Desc }],
order: [
{ by: ChapterOrderBy.FetchedAt, byType: SortOrder.Desc },
{ by: ChapterOrderBy.SourceOrder, byType: SortOrder.Desc },
],
first: initialPages * PAGE_SIZE + lastOffset,
},
options,

View File

@@ -1,7 +1,7 @@
[
{
"uiVersion": "PREVIEW",
"serverVersion": "r1527"
"serverVersion": "r1540"
},
{
"tag": "v1.1.0",