fhdl/specials/Instance: fix item sorting

This commit is contained in:
Sebastien Bourdeauducq 2013-07-26 14:00:29 +02:00
parent 6e1195415e
commit cec8fc4ca4

View file

@ -95,7 +95,7 @@ class Instance(Special):
else: else:
self.name_override = of self.name_override = of
self.items = list(items) 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_type, item_name = k.split("_", maxsplit=1)
item_class = { item_class = {
"i": Instance.Input, "i": Instance.Input,