From ada1b7b54c873dc45f79dfe462e6362386665ed6 Mon Sep 17 00:00:00 2001 From: Naga <94557604+NagaYZ@users.noreply.github.com> Date: Sun, 25 Feb 2024 00:38:17 +0100 Subject: [PATCH] fixed sort descending --- .../org/koitharu/kotatsu/parsers/site/all/WebtoonsParser.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}") }