Bertrand Bordage committed e5ed930

Fixes the image ordering once and for all.

Comments (0)

Files changed (1)


 # coding: utf-8
 from django.db.models import BooleanField, PositiveIntegerField, \
-                              CharField
+                             CharField
 from cms.models import CMSPlugin
 from filer.fields.folder import FilerFolderField
     def images(self):
         if not hasattr(self, '__images'):
-            files = self.album.files
+            files = self.album.files.order_by('name', 'original_filename')
             self.__images = [f for f in files if f.file_type == 'Image']
         return self.__images