event sorter