mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-24 22:07:19 -05:00
Fix BoxSet sorting (#14919)
Co-authored-by: Cody Robibero <cody@robibe.ro>
This commit is contained in:
parent
cce6bf27e0
commit
0f42aa892e
@ -1351,6 +1351,14 @@ namespace MediaBrowser.Controller.Entities
|
||||
var realChildren = visibleChildren
|
||||
.Where(e => query is null || UserViewBuilder.FilterItem(e, query))
|
||||
.ToArray();
|
||||
|
||||
if (this is BoxSet && (query.OrderBy is null || query.OrderBy.Count == 0))
|
||||
{
|
||||
realChildren = realChildren
|
||||
.OrderBy(e => e.ProductionYear ?? int.MaxValue)
|
||||
.ToArray();
|
||||
}
|
||||
|
||||
var childCount = realChildren.Length;
|
||||
if (result.Count < limit)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user