diff --git a/cycler.py b/cycler.py index 8fd93ef..d69adf1 100644 --- a/cycler.py +++ b/cycler.py @@ -335,7 +335,7 @@ def __repr__(self): def _repr_html_(self): # an table showing the value of each key through a full cycle output = "" - sorted_keys = sorted(self.keys) + sorted_keys = sorted(self.keys, key=repr) for key in sorted_keys: output += "".format(key=key) for d in iter(self):
{key!r}