← Back to team overview

openlp-core team mailing list archive

[Merge] lp:~cblak3/openlp/bug817674 into lp:openlp

 

Chris Blake has proposed merging lp:~cblak3/openlp/bug817674 into lp:openlp.

Requested reviews:
  Tim Bentley (trb143)
Related bugs:
  Bug #817674 in OpenLP: "Export Song - Song list appears to be random order"
  https://bugs.launchpad.net/openlp/+bug/817674

For more details, see:
https://code.launchpad.net/~cblak3/openlp/bug817674/+merge/70777

Fixed bug #817674 'Export Song - Song list appears to be random order '.
-- 
https://code.launchpad.net/~cblak3/openlp/bug817674/+merge/70777
Your team OpenLP Core is subscribed to branch lp:openlp.
=== modified file 'openlp/plugins/songs/forms/songexportform.py'
--- openlp/plugins/songs/forms/songexportform.py	2011-06-12 16:02:52 +0000
+++ openlp/plugins/songs/forms/songexportform.py	2011-08-08 19:23:31 +0000
@@ -28,6 +28,7 @@
 The :mod:`songexportform` module provides the wizard for exporting songs to the
 OpenLyrics format.
 """
+import locale
 import logging
 
 from PyQt4 import QtCore, QtGui
@@ -249,6 +250,7 @@
         # Load the list of songs.
         Receiver.send_message(u'cursor_busy')
         songs = self.plugin.manager.get_all_objects(Song)
+        songs.sort(cmp=locale.strcoll, key=lambda song: song.title.lower())
         for song in songs:
             authors = u', '.join([author.display_name
                 for author in song.authors])


Follow ups