Enable sorting of events manually with event.priority

Allow us to override sorting of events using a `event.priority` attribute. A use case for this is when we want to separate groups of events such as active vs. inactive.