From 2c9220090a8c56f93cbe69501567164ecbbfddc3 Mon Sep 17 00:00:00 2001 From: Koitharu Date: Sun, 21 Jul 2024 06:31:47 +0300 Subject: [PATCH] Fix pinned sources order --- .../org/koitharu/kotatsu/explore/data/MangaSourcesRepository.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/org/koitharu/kotatsu/explore/data/MangaSourcesRepository.kt b/app/src/main/kotlin/org/koitharu/kotatsu/explore/data/MangaSourcesRepository.kt index 5b683fdf0..752cf1876 100644 --- a/app/src/main/kotlin/org/koitharu/kotatsu/explore/data/MangaSourcesRepository.kt +++ b/app/src/main/kotlin/org/koitharu/kotatsu/explore/data/MangaSourcesRepository.kt @@ -314,7 +314,7 @@ class MangaSourcesRepository @Inject constructor( } } if (sortOrder == SourcesSortOrder.ALPHABETIC) { - result.sortWith(compareBy { it.isPinned }.thenBy { it.getTitle(context) }) + result.sortWith(compareBy { !it.isPinned }.thenBy { it.getTitle(context) }) } return result }