Skip to content

Commit

Permalink
Behavior change: SearchEmojiManager sorts by found index and then by …
Browse files Browse the repository at this point in the history
…shortcode.
  • Loading branch information
vanniktech committed Dec 10, 2023
1 parent 67b99ce commit 5216112
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class SearchEmojiManager : SearchEmoji {
}
}.firstOrNull()
}
.sortedWith(compareBy({ it.range.first }, { it.shortcode }))
else -> emptyList()
}
}
Expand Down

0 comments on commit 5216112

Please sign in to comment.