def __eq__(self, other):
        """Comparison to another SON is order-sensitive while comparison to a
        regular dictionary is order-insensitive.
        """
        if isinstance(other, SON):
            return len(self) == len(other) and self.items() == other.items()
        return self.to_dict() == other
Comparison to another SON is order-sensitive while comparison to a
        regular dictionary is order-insensitive.
        
stackoverflow/venv/lib/python3.6/site-packages/bson/son.py