Jump to content

Sort by Year no longer working


jje4th

Recommended Posts

I got a new PC and needed to re-install Media Browser.  Ever since then Sort by Year does not work for my media collection in Media Browser Classic.  It is not an issue with the metadata as I can sort by Year in the Media Browser Web Client just fine.  Indexing by year in Media Browser Classic also works fine. Why I try to sort by year in Media Browser Classic, the sort doesn't change (e.g. If I choose Sort by Name, then Sort By Year items are sorted by name.  If I choose sort by Runtime then Sort by Year items are sorted by run time). I installed the latest beta (3.0.129) today to verify the problem still exists, but it been present for about 2 weeks.  

 

Is this a bug?

Link to comment
Share on other sites

  • 4 weeks later...
lolento

I have the same issue.  After update to the latest MB3 and MBC, I can no longer sort by Year.

 

Sort by Name, Date, Rating, Run Time, Unwatched, all works fine. Only sort by Year is not working.

 

I am getting the following on the error log:

 

2014-03-07 09:45:56.7500,Error,,Async thread threw the following exception:  ( Exception.  Type=System.InvalidOperationException Msg=Failed to compare two elements in the array. Src=mscorlib Method=Sort Line=0 Col=0 [n] StackTrace= [n]    at System.Collections.Generic.ArraySortHelper`1.Sort(T[] keys,, Int32 index,, Int32 length,, IComparer`1 comparer) [n]    at System.Array.Sort[T](T[] array,, Int32 index,, Int32 length,, IComparer`1 comparer) [n]    at System.Collections.Generic.List`1.Sort(Int32 index,, Int32 count,, IComparer`1 comparer) [n]    at MediaBrowser.Library.Entities.Folder.Sort(IComparer`1 sortFunction,, Boolean notifyChange) [n]    at MediaBrowser.Library.Entities.Folder.Sort(IComparer`1 sortFunction) [n]    at MediaBrowser.Code.ModelItems.FolderChildren.<>c__DisplayClass5.<Sort>b__3() [n]    at MediaBrowser.Library.Threading.Async.<>c__DisplayClass4.<Queue>b__3() ),33,Worker thread for Background Sorter
2014-03-07 09:47:07.2410,Error,,Async thread threw the following exception:  ( Exception.  Type=System.InvalidOperationException Msg=Failed to compare two elements in the array. Src=mscorlib Method=Sort Line=0 Col=0 [n] StackTrace= [n]    at System.Collections.Generic.ArraySortHelper`1.Sort(T[] keys,, Int32 index,, Int32 length,, IComparer`1 comparer) [n]    at System.Array.Sort[T](T[] array,, Int32 index,, Int32 length,, IComparer`1 comparer) [n]    at System.Collections.Generic.List`1.Sort(Int32 index,, Int32 count,, IComparer`1 comparer) [n]    at MediaBrowser.Library.Entities.Folder.Sort(IComparer`1 sortFunction,, Boolean notifyChange) [n]    at MediaBrowser.Library.Entities.Folder.Sort(IComparer`1 sortFunction) [n]    at MediaBrowser.Code.ModelItems.FolderChildren.<>c__DisplayClass5.<Sort>b__3() [n]    at MediaBrowser.Library.Threading.Async.<>c__DisplayClass4.<Queue>b__3() ),33,Worker thread for Background Sorter

Edited by lolento
Link to comment
Share on other sites

lolento

A bit more info.

 

The error is happening on both my MBC clients...however, when I sort by year or release date on the web browser, it is fine.  Error only occur on MBC

Link to comment
Share on other sites

lolento

Figured out what the problem is.

 

There is a box set in the library that did not have a release year at the box set level.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...