diff --git a/media/forms.py b/media/forms.py index 7bd1056..18f91a0 100644 --- a/media/forms.py +++ b/media/forms.py @@ -100,8 +100,9 @@ class MediaAdminForm(ModelForm): if self.cleaned_data['authors']: authors = self.cleaned_data['authors'] + old_authors = authors.copy() def sort(author): - return str(-author.note) + "." + author.name + return str(-author.note) + "." + str(old_authors.index(author)) + "." + author.name authors.sort(key=sort) author_name = self.cleaned_data['authors'][0].name if ',' not in author_name and ' ' in author_name: