allow sort on queries