db : Reorder older databases.

This commit is contained in:
Philippe Groarke 2018-02-19 17:43:56 -05:00
parent 632a33306f
commit d5604b7517
3 changed files with 41 additions and 41 deletions

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+"\x00"+x[0]).lower())
key=lambda x: ("%s\x00%s" % (x[1].name, x[0])).lower())
for guid,mapping in sorted_p_dict:
out_file.write(mapping.serialize() + "\n")