How to change the events order?