fixed typo for orderby syntax in queries