Salome HOME
Unify function headers
[modules/smesh.git] / src / Tools / MacMesh / MacMesh / CompositeBoxF.py
index dc1be5336867db9c85478a30dfdf5ec9d0209809..d7e17d729f98e813888cc4aa31fb217a23ac48d2 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2014-2016  EDF R&D
+# Copyright (C) 2014-2020  EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -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])