Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fhdl/specials/Instance: fix item sorting

  • Loading branch information...
commit cec8fc4ca4b60e7081d969531a6c793646d855b9 1 parent 6e11954
Sébastien Bourdeauducq authored July 26, 2013

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  migen/fhdl/specials.py
2  migen/fhdl/specials.py
@@ -95,7 +95,7 @@ def __init__(self, of, *items, name="", **kwargs):
95 95
 		else:
96 96
 			self.name_override = of
97 97
 		self.items = list(items)
98  
-		for k, v in sorted(kwargs.items(), key=itemgetter(1)):
  98
+		for k, v in sorted(kwargs.items(), key=itemgetter(0)):
99 99
 			item_type, item_name = k.split("_", maxsplit=1)
100 100
 			item_class = {
101 101
 				"i": Instance.Input,

0 notes on commit cec8fc4

Please sign in to comment.
Something went wrong with that request. Please try again.