aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Sorting/ArtistComparer.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-04-20 21:02:16 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-04-20 21:02:16 -0400
commit19d21a246d9304f824674df3138b30a5b8e51e8c (patch)
tree3078ba8b630c544915a4a2c1e0b928e193c19056 /MediaBrowser.Server.Implementations/Sorting/ArtistComparer.cs
parent04030ffb65add7e280d3c9a8382bac706ebc56f4 (diff)
made Audio.Artist plural and removed duplicated of artists into the people collection
Diffstat (limited to 'MediaBrowser.Server.Implementations/Sorting/ArtistComparer.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Sorting/ArtistComparer.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/MediaBrowser.Server.Implementations/Sorting/ArtistComparer.cs b/MediaBrowser.Server.Implementations/Sorting/ArtistComparer.cs
index c34f096a2..d31ee8790 100644
--- a/MediaBrowser.Server.Implementations/Sorting/ArtistComparer.cs
+++ b/MediaBrowser.Server.Implementations/Sorting/ArtistComparer.cs
@@ -3,6 +3,7 @@ using MediaBrowser.Controller.Entities.Audio;
using MediaBrowser.Controller.Sorting;
using MediaBrowser.Model.Querying;
using System;
+using System.Linq;
namespace MediaBrowser.Server.Implementations.Sorting
{
@@ -31,7 +32,7 @@ namespace MediaBrowser.Server.Implementations.Sorting
{
var audio = x as Audio;
- return audio == null ? string.Empty : audio.Artist;
+ return audio == null ? string.Empty : audio.Artists.OrderBy(i => i).FirstOrDefault() ?? string.Empty;
}
/// <summary>