[WIP] Sort events

#12