diff --git a/src/main/kotlin/org/koitharu/kotatsu/parsers/site/all/WebtoonsParser.kt b/src/main/kotlin/org/koitharu/kotatsu/parsers/site/all/WebtoonsParser.kt index c62fa8fa7..75040594f 100644 --- a/src/main/kotlin/org/koitharu/kotatsu/parsers/site/all/WebtoonsParser.kt +++ b/src/main/kotlin/org/koitharu/kotatsu/parsers/site/all/WebtoonsParser.kt @@ -198,8 +198,8 @@ internal abstract class WebtoonsParser( val sortedResult = when (filter.sortOrder) { SortOrder.UPDATED -> result.sortedBy { it.date } - SortOrder.POPULARITY -> result.sortedBy { it.readCount } - SortOrder.RATING -> result.sortedBy { it.rating } + SortOrder.POPULARITY -> result.sortedByDescending { it.readCount } + SortOrder.RATING -> result.sortedByDescending { it.rating } //SortOrder.LIKE -> result.sortedBy { it.likeCount } else -> throw IllegalArgumentException("Unsupported sort order: ${filter.sortOrder}") }