fixed bug #817674 'Export Song - Song list appears to be random order '

Fixes: https://launchpad.net/bugs/817674
This commit is contained in:
Chris Blake 2011-08-08 13:30:45 -04:00
parent 2c6d14cfc8
commit e75631d7f5

View File

@ -249,7 +249,7 @@ class SongExportForm(OpenLPWizard):
# Load the list of songs.
Receiver.send_message(u'cursor_busy')
songs = self.plugin.manager.get_all_objects(Song)
songs.sort(key=lambda custom: custom.title.lower())
songs.sort(key=lambda song: song.title.lower())
for song in songs:
authors = u', '.join([author.display_name
for author in song.authors])