fix sorting in user events