fix(trakt): restore recently-added order for Trakt watchlist

The watchlist was being sorted by Trakt rank (ascending), which is the
order items were added (oldest first). Restore the previous
recently-added-first ordering by sorting on listed-at descending.
This commit is contained in:
DynamycSound 2026-06-08 15:34:20 +00:00
parent 09cb8f8277
commit e22d9d6ffa
No known key found for this signature in database

View file

@ -538,10 +538,7 @@ object TraktLibraryRepository {
}
return (movieItems + showItems)
.mapNotNull(::mapToLibraryItem)
.sortedWith(
compareBy<LibraryItem> { it.traktRank ?: Int.MAX_VALUE }
.thenByDescending { it.savedAtEpochMs },
)
.sortedByDescending { it.savedAtEpochMs }
}
private suspend fun fetchPersonalListItems(