Fix pinned sources order

This commit is contained in:
Koitharu
2024-07-21 06:31:47 +03:00
parent b17ef8b6ff
commit 2c9220090a

View File

@@ -314,7 +314,7 @@ class MangaSourcesRepository @Inject constructor(
}
}
if (sortOrder == SourcesSortOrder.ALPHABETIC) {
result.sortWith(compareBy<MangaSourceInfo> { it.isPinned }.thenBy { it.getTitle(context) })
result.sortWith(compareBy<MangaSourceInfo> { !it.isPinned }.thenBy { it.getTitle(context) })
}
return result
}