Browse files

fhdl/specials/Instance: fix item sorting

  • Loading branch information...
1 parent 6e11954 commit cec8fc4ca4b60e7081d969531a6c793646d855b9 @sbourdeauducq sbourdeauducq committed Jul 26, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 migen/fhdl/specials.py
View
2 migen/fhdl/specials.py
@@ -95,7 +95,7 @@ def __init__(self, of, *items, name="", **kwargs):
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,

0 comments on commit cec8fc4

Please sign in to comment.