diff --git a/src/domain/session/room/timeline/ReactionsViewModel.js b/src/domain/session/room/timeline/ReactionsViewModel.js index 9385664c..ba9b7eb4 100644 --- a/src/domain/session/room/timeline/ReactionsViewModel.js +++ b/src/domain/session/room/timeline/ReactionsViewModel.js @@ -83,7 +83,13 @@ class ReactionViewModel extends ViewModel { } _compare(other) { - return this._annotation.count - other._annotation.count; + const a = this._annotation; + const b = other._annotation; + if (a.count !== b.count) { + return b.count - a.count; + } else { + return a.firstTimestamp - b.firstTimestamp; + } } toggleReaction() {