mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
fix sorting of authors list
This commit is contained in:
parent
877d454c8f
commit
7f36e0ed20
1 changed files with 1 additions and 1 deletions
|
|
@ -307,7 +307,7 @@ class ArticlesGenerator(Generator):
|
|||
reverse=self.settings['REVERSE_CATEGORY_ORDER'])
|
||||
|
||||
self.authors = list(self.authors.items())
|
||||
self.authors.sort()
|
||||
self.authors.sort(key=lambda item: item[0].name)
|
||||
|
||||
self._update_context(('articles', 'dates', 'tags', 'categories',
|
||||
'tag_cloud', 'authors'))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue