Galerie mk2
authorŁukasz Rekucki <lrekucki@gmail.com>
Fri, 16 Oct 2009 11:27:26 +0000 (13:27 +0200)
committerŁukasz Rekucki <lrekucki@gmail.com>
Fri, 16 Oct 2009 11:27:26 +0000 (13:27 +0200)
apps/api/handlers/library_handlers.py

index f533d0e..6ac0ba1 100644 (file)
@@ -337,7 +337,7 @@ class DocumentGalleryHandler(BaseHandler):
 
             gallery = {'name': assoc.name, 'pages': []}
             
 
             gallery = {'name': assoc.name, 'pages': []}
             
-            for file in sorted(os.listdir(dirpath)):
+            for file in os.listdir(dirpath):
                 if not isinstance(file, unicode):
                     try:
                         file = file.decode('utf-8')
                 if not isinstance(file, unicode):
                     try:
                         file = file.decode('utf-8')