Skip to content

Commit

Permalink
fix: sorting by date
Browse files Browse the repository at this point in the history
  • Loading branch information
Thundernerd committed Mar 14, 2024
1 parent 0a21c1d commit be199bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mangarr.Stack/Library/LibraryApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public List<ContentItemModel> GetSortedLibrary()
orderedItems = items.OrderBy(x => x.Manga.DateCreated);
break;
case LibrarySortMode.Updated:
orderedItems = items.OrderBy(x => x.Chapters.OrderBy(y => y.DateCreated).Last());
orderedItems = items.OrderBy(x => x.Chapters.OrderBy(y => y.DateCreated).Last().DateCreated);
break;
case LibrarySortMode.Source:
orderedItems = items.OrderBy(x => x.Source?.Name ?? string.Empty);
Expand Down

0 comments on commit be199bb

Please sign in to comment.