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 12:59:56 -04:00
parent f2090100a1
commit 2c6d14cfc8

View File

@ -249,6 +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())
for song in songs:
authors = u', '.join([author.display_name
for author in song.authors])