From dce1784aca44ccc1750080b0e3fc2ba7d25fb665 Mon Sep 17 00:00:00 2001 From: danielballan Date: Sun, 14 Feb 2016 14:52:23 -0500 Subject: [PATCH] FIX: In _repr_html_, order keys by their repr. --- cycler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}