diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2012-06-21 18:30:09 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2012-06-21 18:30:09 (GMT) |
commit | b5dedd2a068e70bc5a5feea53a5c46d7430e95e0 (patch) | |
tree | cb4b765ef4112d6408ecdef06d74a1e39c13d7a8 | |
parent | 839bed14b79ad2a4c5e9f19436770495554eb72e (diff) |
Display the images sorted in alphabetical order
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
-rw-r--r-- | activity.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activity.py b/activity.py index 106278a..b489622 100644 --- a/activity.py +++ b/activity.py @@ -115,7 +115,7 @@ class ImageCollectionViewer(gtk.VBox): self.image_order = 0 self.image_files_list = [] - for fname in os.listdir(images_path): + for fname in sorted(os.listdir(images_path)): self.image_files_list.append(images_path + fname) logging.error('Image file: %s', fname) |