def __lt__(self, other):
if not isinstance(other, RestrictedType):<EOL><INDENT>other = type(self)(other)<EOL><DEDENT>if   isinstance(self.type, MultiType):  thisValue = self.type<EOL>else:                                   thisValue = self.gameValue()<EOL>if   isinstance(other, MultiType):      othrValue = other.type<EOL>else:                                   othrValue = other.gameValue()<EOL>if othrValue == None:   return False <EOL>if thisValue == None:   return True <EOL>return thisValue < othrValue<EOL>
allow sorting