fix: tag sort

This commit is contained in:
rebelonion 2024-02-21 23:47:48 -06:00
parent 506a0576df
commit 57833be7df

View file

@ -670,8 +670,8 @@ class AnilistQueries {
PrefManager.getVal<Set<String>>(PrefName.TagsListNonAdult).toMutableList() PrefManager.getVal<Set<String>>(PrefName.TagsListNonAdult).toMutableList()
var tags = if (adultTags.isEmpty() || nonAdultTags.isEmpty()) null else var tags = if (adultTags.isEmpty() || nonAdultTags.isEmpty()) null else
mapOf( mapOf(
true to adultTags, true to adultTags.sortedBy { it },
false to nonAdultTags false to nonAdultTags.sortedBy { it }
) )
if (genres.isNullOrEmpty()) { if (genres.isNullOrEmpty()) {