mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-28 14:27:00 +02:00
fix sorting
This commit is contained in:
@@ -74,7 +74,7 @@ open class NIP90ContentDiscoveryFilter(
|
||||
}
|
||||
}
|
||||
|
||||
return sort(collection)
|
||||
return collection.toList()
|
||||
} else {
|
||||
return sort(notes)
|
||||
}
|
||||
@@ -132,6 +132,6 @@ open class NIP90ContentDiscoveryFilter(
|
||||
}
|
||||
|
||||
override fun sort(collection: Set<Note>): List<Note> {
|
||||
return collection.sortedWith(compareBy({ it.createdAt() }, { it.idHex })).reversed()
|
||||
return collection.toList() // collection.sortedWith(compareBy({ it.createdAt() }, { it.idHex })).reversed()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user