unsorted listdir in obvious place
authorMarcin Koziej <marcin@lolownia.org>
Mon, 21 May 2012 12:51:12 +0000 (14:51 +0200)
committerMarcin Koziej <marcin@lolownia.org>
Mon, 21 May 2012 12:51:12 +0000 (14:51 +0200)
apps/catalogue/helpers.py

index 7b1f44a..bfc842f 100644 (file)
@@ -82,8 +82,10 @@ class GalleryMerger(object):
             return self.dest
 
         files = listdir(self.path(self.dest))
+        files.sort()
         self.dest_size = len(files)
         files_other = listdir(self.path(self.src))
+        files_other.sort()
         self.src_size = len(files_other)
 
         if files and files_other: