added windows comment

This commit is contained in:
Andreas Preikschat 2011-05-24 07:23:28 +02:00
parent ce5c354e06
commit 5473d3c817
2 changed files with 2 additions and 1 deletions

View File

@ -137,7 +137,7 @@ class CustomMediaItem(MediaManagerItem):
def loadList(self, custom_slides):
self.listView.clear()
# Sort the customs by its title considering language specific
# characters.
# characters. lower() is needed for windows!
custom_slides.sort(
cmp=locale.strcoll, key=lambda custom: custom.title.lower())
for custom_slide in custom_slides:

View File

@ -230,6 +230,7 @@ class SongMediaItem(MediaManagerItem):
log.debug(u'display results Song')
self.listView.clear()
# Sort the songs by its title considering language specific characters.
# lower() is needed for windows!
searchresults.sort(
cmp=locale.strcoll, key=lambda song: song.title.lower())
for song in searchresults: