Sorts keys before making the filter.
This commit is contained in:
+6
@@ -319,6 +319,9 @@ fun groupByEOSEPresence(notes: Set<Note>): Collection<List<Note>> =
|
|||||||
.sorted()
|
.sorted()
|
||||||
.joinToString(",")
|
.joinToString(",")
|
||||||
}.values
|
}.values
|
||||||
|
.map {
|
||||||
|
it.sortedBy { it.idHex }
|
||||||
|
}
|
||||||
|
|
||||||
fun groupByEOSEPresence(users: Iterable<User>): Collection<List<User>> =
|
fun groupByEOSEPresence(users: Iterable<User>): Collection<List<User>> =
|
||||||
users
|
users
|
||||||
@@ -327,6 +330,9 @@ fun groupByEOSEPresence(users: Iterable<User>): Collection<List<User>> =
|
|||||||
.sorted()
|
.sorted()
|
||||||
.joinToString(",")
|
.joinToString(",")
|
||||||
}.values
|
}.values
|
||||||
|
.map {
|
||||||
|
it.sortedBy { it.pubkeyHex }
|
||||||
|
}
|
||||||
|
|
||||||
fun findMinimumEOSEs(notes: List<Note>): Map<String, EOSETime> {
|
fun findMinimumEOSEs(notes: List<Note>): Map<String, EOSETime> {
|
||||||
val minLatestEOSEs = mutableMapOf<String, EOSETime>()
|
val minLatestEOSEs = mutableMapOf<String, EOSETime>()
|
||||||
|
|||||||
Reference in New Issue
Block a user