Make --format sort order deterministic
This commit is contained in:
parent
0fa6a6451c
commit
7bdc76ff17
1 changed files with 1 additions and 1 deletions
2
check.py
2
check.py
|
@ -463,7 +463,7 @@ def main():
|
||||||
out_file.write("\n")
|
out_file.write("\n")
|
||||||
out_file.write("# " + platform + "\n")
|
out_file.write("# " + platform + "\n")
|
||||||
sorted_p_dict = sorted(p_dict.items(),
|
sorted_p_dict = sorted(p_dict.items(),
|
||||||
key=lambda x: x[1].name.lower())
|
key=lambda x: (x[1].name+"\x00"+x[0]).lower())
|
||||||
|
|
||||||
for guid,mapping in sorted_p_dict:
|
for guid,mapping in sorted_p_dict:
|
||||||
out_file.write(mapping.serialize() + "\n")
|
out_file.write(mapping.serialize() + "\n")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue