-# Copyright (C) 2014-2016 EDF R&D
+# Copyright (C) 2014-2019 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
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])