Commit 2f535bef authored by PoroCYon's avatar PoroCYon Committed by PoroCYon
Browse files

... actually make it deterministic

parent 9f03bcf3
......@@ -7,8 +7,8 @@ from smolshared import *
def sort_imports(libraries, hashfn):
#eprintf("in: " + str(libraries))
# sort libs by name length
ll = sorted(libraries.items(), key=lambda ls: len(ls[0]))
# sort libs by name length, then by name
ll = sorted(libraries.items(), key=lambda ls: (len(ls[0]), ls[0]))
for i in range(len(ll)):
# sort symbols by hash value
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment