Salome HOME
Cherry-pick 254c2216: Python3 porting: fix the pb with creation of StdMeshersBuilder_...
[modules/smesh.git] / src / SMESH_SWIG / smeshBuilder.py
index 1817d97ac42cd1fd0c33178b8c4033a4905b2f3b..b60dacbc8c3ba5c216f31f88c9a15f034808a6a8 100644 (file)
@@ -5366,7 +5366,7 @@ class algoCreator:
         if not algoType:
             algoType = self.defaultAlgoType
         if not algoType and self.algoTypeToClass:
-            algoType = list(self.algoTypeToClass.keys())[0]
+            algoType = sorted( self.algoTypeToClass.keys() )[0]
         if algoType in self.algoTypeToClass:
             #print "Create algo",algoType