sort events by time as well
Merge pull request #113 from crigor/event_sort

sort events by time as well