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')
# gallery['pages'].sort()
galleries.append(gallery)
- return galleries
+ return galleries
#
# Document Text View