Change author sorting
[wolnelektury.git] / src / catalogue / models / book.py
index a62cac6..a8ff665 100644 (file)
@@ -211,7 +211,8 @@ class Book(models.Model):
         try:
             author = self.authors().first().sort_key
         except AttributeError:
         try:
             author = self.authors().first().sort_key
         except AttributeError:
-            author = ''
+            # Empty authors last
+            author = '~'
         self.sort_key_author = author
 
         self.cached_author = self.tag_unicode('author')
         self.sort_key_author = author
 
         self.cached_author = self.tag_unicode('author')