Skip to content
Permalink
Browse files

Sort defines by string length in defs2magic

  • Loading branch information...
tatokis committed May 25, 2018
1 parent de5779c commit b6bc2eebede0aa6410853e02a7752ba9f16a62ce
Showing with 3 additions and 0 deletions.
  1. +3 −0 scripts/defs2magic.py
@@ -16,6 +16,9 @@
#print(str(cmds))
defs_file.close()

# Sort the list by string len desc
cmds.sort(key = lambda i: len(i[0]), reverse = True)

stdin = sys.stdin.readlines()
print()
for stdline in stdin:

0 comments on commit b6bc2ee

Please sign in to comment.
You can’t perform that action at this time.