mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 19:45:05 +01:00
more stable sorting order for reactions
This commit is contained in:
parent
bb8acbefa3
commit
2eb2e4e9b3
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user