make sure player deltas are sorted

This commit is contained in:
Nikita Galaiko 2023-06-01 14:51:46 +02:00
parent 6efd814c6e
commit 55312efce5

View File

@ -30,6 +30,7 @@
sessionId: sessions[j].id,
deltas: frameDeltas
.filter((delta) => delta[0] === frameFilepath)
.sort((a, b) => a[1].timestampMs - b[1].timestampMs)
.map((delta) => delta[1]),
filepath: frameFilepath,
doc: $files.value[j][frameFilepath] || ''