Skip to content
Snippets Groups Projects
Verified Commit cf464d38 authored by Laurent Heirendt's avatar Laurent Heirendt :airplane:
Browse files

clean up

parent d4008f36
No related branches found
No related tags found
No related merge requests found
......@@ -259,15 +259,10 @@ for folder in cardDirs:
print(" + New header added.")
print("-----------------------")
print(localIndexArr[indexS])
print(orderArr)
if len(orderArr) > 0:
X = localIndexArr[indexS][1:]
Y = orderArr
X = localIndexArr[indexS][1:]
print("here")
localIndexArr[indexS] = [x for _, x in sorted(zip(Y, X))]
print(localIndexArr[indexS])
else:
# join all subcategories to the index
localIndexArr[indexS] = natsorted(localIndexArr[indexS])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment