Ticket 4059
-  Changes merging of local and global events to ensure global evens with the same priority as local events are fired first