Options: sort values when displaying OptionSet (#326)

This commit is contained in:
Fabian Dill
2022-03-22 15:25:34 +01:00
committed by GitHub
parent 92319b0e31
commit cf2e37f92d

View File

@@ -381,7 +381,7 @@ class OptionSet(Option, VerifyKeys):
return cls.from_text(str(data))
def get_option_name(self, value):
return ", ".join(value)
return ", ".join(sorted(value))
def __contains__(self, item):
return item in self.value