diff --git a/src/UI/Series/SeriesCollection.js b/src/UI/Series/SeriesCollection.js index bef8fe338..42e23fd5e 100644 --- a/src/UI/Series/SeriesCollection.js +++ b/src/UI/Series/SeriesCollection.js @@ -94,8 +94,9 @@ var Collection = PageableCollection.extend({ percentOfEpisodes : { sortValue : function(model, attr) { - var percentOfEpisodes = model.get(attr); var episodeCount = model.get('episodeCount'); + var episodeFileCount = model.get('episodeFileCount'); + var percentOfEpisodes = episodeCount ? episodeFileCount / episodeCount * 100 : 100; return percentOfEpisodes + episodeCount / 1000000; }