Options: sort values when displaying OptionSet (#326)
This commit is contained in:
@@ -381,7 +381,7 @@ class OptionSet(Option, VerifyKeys):
|
|||||||
return cls.from_text(str(data))
|
return cls.from_text(str(data))
|
||||||
|
|
||||||
def get_option_name(self, value):
|
def get_option_name(self, value):
|
||||||
return ", ".join(value)
|
return ", ".join(sorted(value))
|
||||||
|
|
||||||
def __contains__(self, item):
|
def __contains__(self, item):
|
||||||
return item in self.value
|
return item in self.value
|
||||||
|
|||||||
Reference in New Issue
Block a user