X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FTools%2FMacMesh%2FMacMesh%2FCompositeBoxF.py;h=d7e17d729f98e813888cc4aa31fb217a23ac48d2;hb=4b5a9b85aebed2ccc12fe282ee52be127235e052;hp=dc1be5336867db9c85478a30dfdf5ec9d0209809;hpb=0003e6b4fcc95a0aec695ceef8371dee28baf417;p=modules%2Fsmesh.git diff --git a/src/Tools/MacMesh/MacMesh/CompositeBoxF.py b/src/Tools/MacMesh/MacMesh/CompositeBoxF.py index dc1be5336..d7e17d729 100644 --- a/src/Tools/MacMesh/MacMesh/CompositeBoxF.py +++ b/src/Tools/MacMesh/MacMesh/CompositeBoxF.py @@ -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])