fix sorting

This commit is contained in:
Believethehype
2024-05-14 22:21:03 +02:00
parent ea8affaebf
commit 13a53876d0

View File

@@ -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()
}
}