mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-10-09 22:52:36 +02:00
fix sorting
This commit is contained in:
@@ -74,7 +74,7 @@ open class NIP90ContentDiscoveryFilter(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return sort(collection)
|
return collection.toList()
|
||||||
} else {
|
} else {
|
||||||
return sort(notes)
|
return sort(notes)
|
||||||
}
|
}
|
||||||
@@ -132,6 +132,6 @@ open class NIP90ContentDiscoveryFilter(
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun sort(collection: Set<Note>): List<Note> {
|
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