Modify gomi script to sort events by date