Sort assignments by name to make output repeatable
authorMichael Mattice <mmattice@ok7-eleven.com>
Fri, 29 Jan 2016 20:00:49 +0000 (14:00 -0600)
committerKim Grasman <kim.grasman@gmail.com>
Sun, 31 Jan 2016 19:04:48 +0000 (20:04 +0100)
Patch by Mike Mattice, thanks!

asn1ate/sema.py

index 4fc222d..f011339 100644 (file)
@@ -163,7 +163,7 @@ def dependency_sort(assignments):
             component = tuple(connected_component)
             result.append(component)
 
-    for node in graph:
+    for node in sorted(graph.keys(), key=lambda a: a.reference_name()):
         if node not in lowlinks:
             strongconnect(node)