Merge pull request #4736 from nyanmisaka/fix-custom-order

Fix custom library order
pull/4743/head
Claus Vium 4 years ago committed by GitHub
commit b83bc0a589
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -139,13 +139,13 @@ namespace Emby.Server.Implementations.Library
return list return list
.OrderBy(i => .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 if (index == -1
&& i is UserView view && i is UserView view
&& view.DisplayParentId != Guid.Empty) && 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; return index == -1 ? int.MaxValue : index;

Loading…
Cancel
Save