Fix pinned sources order

master
Koitharu 2 years ago
parent b17ef8b6ff
commit 2c9220090a
Signed by: Koitharu
GPG Key ID: 676DEE768C17A9D7

@ -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
}

Loading…
Cancel
Save