Salome HOME
[PY3] use python3 idioms, fix relative imports, fix plugins
[modules/smesh.git] / src / Tools / MacMesh / MacMesh / CompositeBoxF.py
index dc1be5336867db9c85478a30dfdf5ec9d0209809..3b945bbba5c820de947608733377dfbac85937d1 100644 (file)
@@ -222,8 +222,7 @@ def IndexMultiOcc (Array,Element) :
 
 def SortList (ValList, CritList):
     Output = []
-    SortedCritList = copy.copy(CritList)
-    SortedCritList.sort()
+    SortedCritList = sorted(copy.copy(CritList))
     for i in range(0,len(ValList)):
         index = CritList.index(SortedCritList[i])
         Output.append(ValList[index])