Sort episodes in calendar by ep nr if airdate is the same.

This commit is contained in:
Taloth Saldono
2016-03-11 16:54:20 +01:00
parent e6ab4196de
commit 03e2adc332
2 changed files with 4 additions and 2 deletions

View File

@@ -160,7 +160,8 @@ module.exports = Marionette.ItemView.extend({
allDay : false,
statusLevel : self._getStatusLevel(model, end),
downloading : QueueCollection.findEpisode(model.get('id')),
model : model
model : model,
sortOrder : (model.get('seasonNumber') == 0 ? 1000000 : model.get('seasonNumber') * 10000) + model.get('episodeNumber')
};
events.push(event);