diff --git a/komf-core/src/commonMain/kotlin/snd/komf/providers/mangadex/MangaDexMetadataMapper.kt b/komf-core/src/commonMain/kotlin/snd/komf/providers/mangadex/MangaDexMetadataMapper.kt index dce77434..9226b4e6 100644 --- a/komf-core/src/commonMain/kotlin/snd/komf/providers/mangadex/MangaDexMetadataMapper.kt +++ b/komf-core/src/commonMain/kotlin/snd/komf/providers/mangadex/MangaDexMetadataMapper.kt @@ -206,6 +206,7 @@ class MangaDexMetadataMapper( val books = covers .filter { it.attributes.locale in coverLanguages } + .sortedBy { coverLanguages.indexOf(it.attributes.locale) } .groupBy { it.attributes.volume }.values .map { coverArtToBook(it.first()) }