Fix notice
Really sanitize orderBy and groupBy values