From 3a3ee1a9f946dab65d9717f16417a183f3c02633 Mon Sep 17 00:00:00 2001 From: Thomas Adamcik Date: Tue, 27 Apr 2010 23:26:26 +0200 Subject: [PATCH] Fix MPD artist format with repsect to list to set conversion --- mopidy/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mopidy/models.py b/mopidy/models.py index 66e085eb..1c52cbd2 100644 --- a/mopidy/models.py +++ b/mopidy/models.py @@ -178,7 +178,9 @@ class Track(ImmutableObject): :rtype: string """ - return u', '.join([a.name for a in self.artists]) + artists = list(self._artists) + artists.sort(key=lambda a: a.name) + return u', '.join([a.name for a in artists]) class Playlist(ImmutableObject):