unsorted listdir in obvious place
[redakcja.git] / 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: