From d399705e59c6a6efa69b96075b613e63f6c0825f Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Wed, 17 Apr 2013 12:46:52 -0400 Subject: [PATCH] display more types on ibn page --- MediaBrowser.Api/Library/LibraryStructureService.cs | 4 ++-- MediaBrowser.Server.Implementations/Library/LibraryManager.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/MediaBrowser.Api/Library/LibraryStructureService.cs b/MediaBrowser.Api/Library/LibraryStructureService.cs index 713002cab..d36f14867 100644 --- a/MediaBrowser.Api/Library/LibraryStructureService.cs +++ b/MediaBrowser.Api/Library/LibraryStructureService.cs @@ -173,7 +173,7 @@ namespace MediaBrowser.Api.Library { if (string.IsNullOrEmpty(request.UserId)) { - var result = _libraryManager.GetDefaultVirtualFolders().ToList(); + var result = _libraryManager.GetDefaultVirtualFolders().OrderBy(i => i.Name).ToList(); return ToOptimizedResult(result); } @@ -181,7 +181,7 @@ namespace MediaBrowser.Api.Library { var user = _userManager.GetUserById(new Guid(request.UserId)); - var result = _libraryManager.GetVirtualFolders(user).ToList(); + var result = _libraryManager.GetVirtualFolders(user).OrderBy(i => i.Name).ToList(); return ToOptimizedResult(result); } diff --git a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs index eccaf2da4..d3ac96f25 100644 --- a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs +++ b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs @@ -832,7 +832,7 @@ namespace MediaBrowser.Server.Implementations.Library .Select(dir => new VirtualFolderInfo { Name = Path.GetFileName(dir), - Locations = Directory.EnumerateFiles(dir, "*.lnk", SearchOption.TopDirectoryOnly).Select(FileSystem.ResolveShortcut).ToList() + Locations = Directory.EnumerateFiles(dir, "*.lnk", SearchOption.TopDirectoryOnly).Select(FileSystem.ResolveShortcut).OrderBy(i => i).ToList() }); }