flow/actor/filter_endpoints: deterministic order
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Thu, 14 Mar 2013 11:20:18 +0000 (12:20 +0100)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Thu, 14 Mar 2013 11:20:18 +0000 (12:20 +0100)
migen/flow/actor.py

index ce46638d22aab126a7f1eafa355364d3090efb10..0b286342d451a4bb43b51b15c91b45ef0c6c2c37 100644 (file)
@@ -54,7 +54,7 @@ class Actor(HUID):
                return self.endpoints[ep].token
        
        def filter_endpoints(self, cl):
-               return [k for k, v in self.endpoints.items() if isinstance(v, cl)]
+               return sorted(k for k, v in self.endpoints.items() if isinstance(v, cl))
 
        def sinks(self):
                return self.filter_endpoints(Sink)