Forgot to add sorting to new SQL event queries