From 0b7c73a98133236883f1c80afbd6acf530928e70 Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Mon, 13 Feb 2017 13:23:52 +0900 Subject: [PATCH] epub: Sort manifest entries by filename --- sphinx/builders/epub.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx/builders/epub.py b/sphinx/builders/epub.py index 5e248ce3b..3f97a1ae5 100644 --- a/sphinx/builders/epub.py +++ b/sphinx/builders/epub.py @@ -516,7 +516,7 @@ class EpubBuilder(StandaloneHTMLBuilder): if not self.use_index: self.ignored_files.append('genindex' + self.out_suffix) for root, dirs, files in os.walk(outdir): - for fn in files: + for fn in sorted(files): filename = path.join(root, fn)[olen:] if filename in self.ignored_files: continue