From: Marcin Koziej Date: Mon, 21 May 2012 12:51:12 +0000 (+0200) Subject: unsorted listdir in obvious place X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/9ce71c396eabe3142c5f587c1d590c2b3352d480?hp=8c43021c5d0731cf35203cb32bbc63c89271cbb5 unsorted listdir in obvious place --- diff --git a/apps/catalogue/helpers.py b/apps/catalogue/helpers.py index 7b1f44a4..bfc842fc 100644 --- a/apps/catalogue/helpers.py +++ b/apps/catalogue/helpers.py @@ -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: