[ocrfeeder] Sort images when adding them from a folder



commit 441eeb8c7daa7af77075c5ff3b9007fd8c945397
Author: Joaquim Rocha <jrocha igalia com>
Date:   Thu Mar 11 09:56:13 2010 +0100

    Sort images when adding them from a folder

 util/lib.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/util/lib.py b/util/lib.py
index 08b4628..375dafd 100644
--- a/util/lib.py
+++ b/util/lib.py
@@ -70,6 +70,7 @@ def getImagesFromFolder(folder):
             type, detail = mime_type.split('/')
             if type == 'image' and not detail.startswith('svg'):
                 images.append(item)
+    images.sort()
     return images
 
 def getDictFromVariables(variable_list, instance):



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]