Make --format sort order deterministic

This commit is contained in:
Matthias S. Benkmann 2018-02-19 22:39:53 +01:00
parent 0fa6a6451c
commit 7bdc76ff17

View file

@ -463,7 +463,7 @@ def main():
out_file.write("\n")
out_file.write("# " + platform + "\n")
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:
out_file.write(mapping.serialize() + "\n")