collapse the event classes to a (sorted!) dictionary