Fixed scope bug with cda queries setSortBy.