Bertrand Bordage  committed e5ed930

Fixes the image ordering once and for all.

  • Participants
  • Parent commits 5a9fe19

Comments (0)

Files changed (1)

File cmsplugin_nivoslider/

 # 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