mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-19 15:53:50 +02:00
Merge pull request #1870 from softworkz/ChannelSorting
Channel item sort must not default to name sorting when all sort fields are cleared
This commit is contained in:
commit
a4ae54039c
1 changed files with 1 additions and 2 deletions
|
|
@ -1172,8 +1172,7 @@ namespace MediaBrowser.Server.Implementations.Channels
|
|||
{
|
||||
items = ApplyFilters(items, query.Filters, user);
|
||||
|
||||
var sortBy = query.SortBy.Length == 0 ? new[] { ItemSortBy.SortName } : query.SortBy;
|
||||
items = _libraryManager.Sort(items, user, sortBy, query.SortOrder ?? SortOrder.Ascending);
|
||||
items = _libraryManager.Sort(items, user, query.SortBy, query.SortOrder ?? SortOrder.Ascending);
|
||||
|
||||
var all = items.ToList();
|
||||
var totalCount = totalCountFromProvider ?? all.Count;
|
||||
|
|
|
|||
Loading…
Reference in a new issue