occurrent
occurrent copied to clipboard
Write test that verifies that if two events are written at the same time that the order is preserved
i.e e1 and e2 both a t1 then make sure that the order on "read" is always [e1, e2] (good to test this after changing to "id" sorting)
Maybe use "$natural: 1" instead of "_id". https://www.tutorialspoint.com/how-do-i-sort-natural-in-mongodb