private function orderByHasEncryptedField(array $orderBy = null)
    {
        $result = false;

        if ($orderBy && !empty($orderBy)) {
            $encryptedFields = array_keys($this->getEncryptedFields());
            $orderByFields = array_keys($orderBy);
            $commonFields = array_intersect($encryptedFields, $orderByFields);

            $result = !empty($commonFields);
        }

        return $result;
    }