diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-11-19 22:15:48 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-11-19 22:15:48 -0500 |
| commit | bce86c502206b016cc448afc1934101b852a1994 (patch) | |
| tree | 2e6dccdd61ca138ed3237fdeee2ce70e49c33a47 /MediaBrowser.Api/UserLibrary/PersonsService.cs | |
| parent | de339b8265f0e0da7771b02cb9d00c40dad0163f (diff) | |
pull person sort order from tvdb/tmdb data
Diffstat (limited to 'MediaBrowser.Api/UserLibrary/PersonsService.cs')
| -rw-r--r-- | MediaBrowser.Api/UserLibrary/PersonsService.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MediaBrowser.Api/UserLibrary/PersonsService.cs b/MediaBrowser.Api/UserLibrary/PersonsService.cs index 885a4a3e6..09b5ef09f 100644 --- a/MediaBrowser.Api/UserLibrary/PersonsService.cs +++ b/MediaBrowser.Api/UserLibrary/PersonsService.cs @@ -155,7 +155,7 @@ namespace MediaBrowser.Api.UserLibrary /// <returns>IEnumerable{PersonInfo}.</returns> private IEnumerable<PersonInfo> GetAllPeople(IEnumerable<BaseItem> itemsList, string[] personTypes) { - var people = itemsList.SelectMany(i => i.People.OrderBy(p => p.Type)); + var people = itemsList.SelectMany(i => i.People.OrderBy(p => p.SortOrder ?? int.MaxValue).ThenBy(p => p.Type)); return personTypes.Length == 0 ? |
