Small bug with sorting events by validation

- didn't work properly, fixed.