Salome HOME
[PY3] use python3 idioms, fix relative imports, fix plugins
[modules/smesh.git] / src / Tools / MacMesh / MacMesh / CompositeBox.py
index b75ece724fc6e4446f07328e59522c8a043ed426..48accd5fdc6ac746f7fb215b9549dfcfd21b1d60 100644 (file)
@@ -174,8 +174,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])