sort events by version instead of created_at