Salome HOME
updated copyright message
[modules/smesh.git] / src / Tools / MacMesh / MacMesh / CompositeBox.py
index b75ece724fc6e4446f07328e59522c8a043ed426..b2df5e5306ea0b5db5ce6892d77f6df4d07855f3 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2014-2016  EDF R&D
+# Copyright (C) 2014-2023  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
@@ -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])