From 4c3d75916f6ccac6c24a305949913670f61bd211 Mon Sep 17 00:00:00 2001 From: ajurna Date: Thu, 18 Jun 2015 22:46:19 +0100 Subject: [PATCH] made sure to sort the files in the comic before indexing. --- comic/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comic/models.py b/comic/models.py index abdcfc6..615eea6 100644 --- a/comic/models.py +++ b/comic/models.py @@ -143,7 +143,7 @@ def process_comic_book(base_dir, comic_path, comic_file_name): last_read_page=0) book.save() i = 0 - for f in cbx.namelist(): + for f in sorted(cbx.namelist()): ext = f.lower()[-3:] if ext in ['jpg', 'jpeg']: page = ComicPage(Comic=book,