make sure to sort the files by name

This commit is contained in:
Martin A. Brown 2016-04-02 10:46:43 -07:00
parent 93390cd467
commit 691a4bf8d6
1 changed files with 1 additions and 1 deletions

View File

@ -254,7 +254,7 @@ def writemd5sums(fname, md5s, header=None):
with codecs.open(fname, 'w', encoding='utf-8') as file:
if header:
print(header, file=file)
for fname, hashval in md5s.items():
for fname, hashval in sorted(md5s.items()):
print(hashval + ' ' + fname, file=file)