diff options
| author | nyanmisaka <nst799610810@gmail.com> | 2020-12-08 22:33:52 +0800 |
|---|---|---|
| committer | nyanmisaka <nst799610810@gmail.com> | 2020-12-08 22:33:52 +0800 |
| commit | 020fe37dfe4f8b4c2bae61562369f8b234726d1f (patch) | |
| tree | a63c38e261eb3af0703c4557636e09d08dcdff30 /Emby.Server.Implementations/Library/UserViewManager.cs | |
| parent | 80ff564143b0745cba4b01b5378df6415f4072af (diff) | |
fix custom library order
Diffstat (limited to 'Emby.Server.Implementations/Library/UserViewManager.cs')
| -rw-r--r-- | Emby.Server.Implementations/Library/UserViewManager.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/Library/UserViewManager.cs b/Emby.Server.Implementations/Library/UserViewManager.cs index f51657c63..e4221dd50 100644 --- a/Emby.Server.Implementations/Library/UserViewManager.cs +++ b/Emby.Server.Implementations/Library/UserViewManager.cs @@ -139,13 +139,13 @@ namespace Emby.Server.Implementations.Library return list .OrderBy(i => { - var index = orders.IndexOf(i.Id.ToString("N", CultureInfo.InvariantCulture)); + var index = orders.IndexOf(i.Id.ToString("D", CultureInfo.InvariantCulture)); if (index == -1 && i is UserView view && view.DisplayParentId != Guid.Empty) { - index = orders.IndexOf(view.DisplayParentId.ToString("N", CultureInfo.InvariantCulture)); + index = orders.IndexOf(view.DisplayParentId.ToString("D", CultureInfo.InvariantCulture)); } return index == -1 ? int.MaxValue : index; |
