Sort and delete events