{
	"case": "Two lines with one device and sequence are one event: the earlier by timestamp, then the one whose line sorts first by its bytes",
	"book": [
		{
			"timestamp": 1000,
			"offset": 0,
			"device": "mac-aaaa",
			"sequence": 1,
			"type": "book.imported",
			"data": {
				"id": "01ja0000000000000000000000"
			}
		},
		{
			"timestamp": 1001,
			"offset": 0,
			"device": "mac-aaaa",
			"sequence": 2,
			"type": "edition.added",
			"data": {
				"id": "01ja0000000000000000000001",
				"file": "Ebook/Dune - Frank Herbert.epub",
				"hash": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"
			}
		},
		{
			"timestamp": 2000,
			"offset": 0,
			"device": "mac-aaaa",
			"sequence": 3,
			"type": "status.updated",
			"data": {
				"status": "stopped"
			}
		},
		{
			"timestamp": 2000,
			"offset": 0,
			"device": "mac-aaaa",
			"sequence": 3,
			"type": "status.updated",
			"data": {
				"status": "read"
			}
		},
		{
			"timestamp": 2500,
			"offset": 0,
			"device": "mac-aaaa",
			"sequence": 4,
			"type": "rating.updated",
			"data": {
				"rating": 2
			}
		},
		{
			"timestamp": 2400,
			"offset": 0,
			"device": "mac-aaaa",
			"sequence": 4,
			"type": "rating.updated",
			"data": {
				"rating": 5
			}
		}
	],
	"expect": {
		"status": "read",
		"rating": 5
	}
}
