Pārlūkot izejas kodu

Add key to sort

Yentl Van Tendeloo 7 gadi atpakaļ
vecāks
revīzija
428dbfd5bd
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      src/pypdevs/solver.py

+ 1 - 1
src/pypdevs/solver.py

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