Fix sort by date in LibraryPresenter (#8137) (#8145)

Co-authored-by: Alessandro Tedesco <alessandro.tedesco@zehus.it>
This commit is contained in:
Alessandro Tedesco 2022-10-04 05:03:43 +02:00 committed by GitHub
parent 1cf1b34e7f
commit b8fa326c21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -390,7 +390,7 @@ class LibraryPresenter(
manga1chapterFetchDate.compareTo(manga2chapterFetchDate) manga1chapterFetchDate.compareTo(manga2chapterFetchDate)
} }
LibrarySort.Type.DateAdded -> { LibrarySort.Type.DateAdded -> {
i1.libraryManga.manga.dateAdded.compareTo(i1.libraryManga.manga.dateAdded) i1.libraryManga.manga.dateAdded.compareTo(i2.libraryManga.manga.dateAdded)
} }
else -> throw IllegalStateException("Invalid SortModeSetting: ${sort.type}") else -> throw IllegalStateException("Invalid SortModeSetting: ${sort.type}")
} }