From 691a4bf8d6a9620ab7ab1ee4e2e78302f52c85f2 Mon Sep 17 00:00:00 2001 From: "Martin A. Brown" Date: Sat, 2 Apr 2016 10:46:43 -0700 Subject: [PATCH] make sure to sort the files by name --- tldp/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tldp/utils.py b/tldp/utils.py index f114ce8..9f35dd1 100644 --- a/tldp/utils.py +++ b/tldp/utils.py @@ -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)