Add key to sort

This commit is contained in:
Yentl Van Tendeloo 2018-07-04 06:29:14 +02:00
parent 559f0c6193
commit 428dbfd5bd

View file

@ -255,7 +255,7 @@ class Solver(object):
# self.transitioning are the models that must transition # self.transitioning are the models that must transition
if len(imminent) > 1: if len(imminent) > 1:
# Perform all selects # Perform all selects
imminent.sort() imminent.sort(key=lambda i: i.getModelFullName())
pending = imminent pending = imminent
level = 1 level = 1
while len(pending) > 1: while len(pending) > 1: