mirror of
https://github.com/styppo/hamstr.git
synced 2024-10-18 13:33:22 +00:00
fix sorting.
This commit is contained in:
parent
176554cddd
commit
171e8b3530
@ -253,7 +253,7 @@ export default {
|
||||
if (event.created_at < this.ancestors[i].created_at) {
|
||||
// the new event is older than the current index,
|
||||
// so we add it at the previous index
|
||||
this.ancestors.splice(i - 1, 0, event)
|
||||
this.ancestors.splice(i, 0, event)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
@ -201,7 +201,7 @@ export default {
|
||||
if (event.created_at > this.events[i].created_at) {
|
||||
// the new event is newer than the current index,
|
||||
// so we add it at the previous index
|
||||
this.events.splice(i - 1, 0, event)
|
||||
this.events.splice(i, 0, event)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user