'Comparison to another SON is order-sensitive while comparison to a
regular dictionary is order-insensitive.'

def __eq__(self, other):

    if isinstance(other, SON):
        return ((len(self) == len(other)) and (self.items() == other.items()))
    return (self.to_dict() == other)
