From cec8fc4ca4b60e7081d969531a6c793646d855b9 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Fri, 26 Jul 2013 14:00:29 +0200 Subject: [PATCH] fhdl/specials/Instance: fix item sorting --- migen/fhdl/specials.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migen/fhdl/specials.py b/migen/fhdl/specials.py index 44d34473..32afda62 100644 --- a/migen/fhdl/specials.py +++ b/migen/fhdl/specials.py @@ -95,7 +95,7 @@ class Instance(Special): else: self.name_override = of self.items = list(items) - for k, v in sorted(kwargs.items(), key=itemgetter(1)): + for k, v in sorted(kwargs.items(), key=itemgetter(0)): item_type, item_name = k.split("_", maxsplit=1) item_class = { "i": Instance.Input, -- 2.30.2