fixes #2 - sorting events