Avoids flickering in the Global Feed

This commit is contained in:
Vitor Pamplona 2023-04-27 18:20:04 -04:00
parent 6b3e10ed28
commit 8ca63f32f4

View File

@ -45,6 +45,6 @@ object GlobalFeedFilter : AdditiveFeedFilter<Note>() {
}
override fun sort(collection: Set<Note>): List<Note> {
return collection.sortedBy { it.createdAt() }.reversed()
return collection.sortedWith(compareBy({ it.createdAt() }, { it.idHex })).reversed()
}
}