diff -r 37882f34f9cb -r f10449b18dbe PLCGenerator.py --- a/PLCGenerator.py Sat May 12 12:33:17 2012 +0200 +++ b/PLCGenerator.py Fri May 18 18:49:49 2012 +0200 @@ -821,6 +821,7 @@ otherInstances["outVariables&coils"].append(instance) orderedInstances.sort() otherInstances["outVariables&coils"].sort(SortInstances) + otherInstances["blocks"].sort(SortInstances) instances = [instance for (executionOrderId, instance) in orderedInstances] instances.extend(otherInstances["connectors"] + otherInstances["outVariables&coils"] + otherInstances["blocks"]) for instance in instances: