This is an awesome animation where can I find references that discuss the math of the ordering of events?