Skip to content

Commit

Permalink
Sorts keys before making the filter.
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorpamplona committed Jul 22, 2024
1 parent a636f4a commit 3c1f57f
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,9 @@ fun groupByEOSEPresence(notes: Set<Note>): Collection<List<Note>> =
.sorted()
.joinToString(",")
}.values
.map {
it.sortedBy { it.idHex }
}

fun groupByEOSEPresence(users: Iterable<User>): Collection<List<User>> =
users
Expand All @@ -327,6 +330,9 @@ fun groupByEOSEPresence(users: Iterable<User>): Collection<List<User>> =
.sorted()
.joinToString(",")
}.values
.map {
it.sortedBy { it.pubkeyHex }
}

fun findMinimumEOSEs(notes: List<Note>): Map<String, EOSETime> {
val minLatestEOSEs = mutableMapOf<String, EOSETime>()
Expand Down

0 comments on commit 3c1f57f

Please sign in to comment.