Modified EventQueue to order inserted events by command priority, then insertion timestamp