aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Sorting
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-04-22 23:56:11 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-04-22 23:56:11 -0400
commit4a100452cf98228a766375dbf009209f719e8ae3 (patch)
tree650f76f96ab5f3cd2fc0919a4636af48c6a7192c /MediaBrowser.Server.Implementations/Sorting
parent9553542875d45ac17087e55e0e80d094622ce895 (diff)
audio page progress
Diffstat (limited to 'MediaBrowser.Server.Implementations/Sorting')
-rw-r--r--MediaBrowser.Server.Implementations/Sorting/ArtistComparer.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/MediaBrowser.Server.Implementations/Sorting/ArtistComparer.cs b/MediaBrowser.Server.Implementations/Sorting/ArtistComparer.cs
index d31ee8790..b0a6989e9 100644
--- a/MediaBrowser.Server.Implementations/Sorting/ArtistComparer.cs
+++ b/MediaBrowser.Server.Implementations/Sorting/ArtistComparer.cs
@@ -32,7 +32,12 @@ namespace MediaBrowser.Server.Implementations.Sorting
{
var audio = x as Audio;
- return audio == null ? string.Empty : audio.Artists.OrderBy(i => i).FirstOrDefault() ?? string.Empty;
+ if (audio == null)
+ {
+ return string.Empty;
+ }
+
+ return audio.Artist ?? string.Empty;
}
/// <summary>