Sort episodes by column beneath their parents

This commit is contained in:
Mbucari 2023-04-02 21:28:55 -06:00
parent 69918c2587
commit 2248d7b24e
2 changed files with 4 additions and 4 deletions

View file

@ -201,8 +201,8 @@ namespace LibationWinForms.GridView
{
var pIndex = itemsList.IndexOf(parent);
//children should always be sorted by series index.
foreach (var c in children.Where(c => c.Parent == parent).OrderBy(c => c.SeriesIndex))
//children are sorted beneath their series parent
foreach (var c in children.Where(c => c.Parent == parent).OrderBy(c => c, Comparer))
itemsList.Insert(++pIndex, c);
}
}