aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Library/DtoBuilder.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-04-04 11:22:39 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-04-04 11:22:39 -0400
commit6e957cc0b05d4c5b15bbf309e7bf1e93abe442a4 (patch)
treefa5fa9898b5c56b3efe2274672391b031360b6a7 /MediaBrowser.Controller/Library/DtoBuilder.cs
parente8d03d49f21f2a17cc22204899eb10a4beb600bb (diff)
added new video filters
Diffstat (limited to 'MediaBrowser.Controller/Library/DtoBuilder.cs')
-rw-r--r--MediaBrowser.Controller/Library/DtoBuilder.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Library/DtoBuilder.cs b/MediaBrowser.Controller/Library/DtoBuilder.cs
index 6b28e0347..f089b531c 100644
--- a/MediaBrowser.Controller/Library/DtoBuilder.cs
+++ b/MediaBrowser.Controller/Library/DtoBuilder.cs
@@ -548,6 +548,9 @@ namespace MediaBrowser.Controller.Library
// Attach People by transforming them into BaseItemPerson (DTO)
dto.People = new BaseItemPerson[item.People.Count];
+ // Ordering by person type to ensure actors and artists are at the front.
+ // This is taking advantage of the fact that they both begin with A
+ // This should be improved in the future
var entities = await Task.WhenAll(item.People.OrderBy(i => i.Type).Select(c =>
Task.Run(async () =>