mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-24 22:35:39 -04:00
Fixed: Initial sorting for Next Airing
This commit is contained in:
@@ -63,6 +63,21 @@ define(
|
||||
return '1';
|
||||
};
|
||||
|
||||
_.extend(this.prototype, {
|
||||
initialSort: function () {
|
||||
var key = this.state.sortKey;
|
||||
var order = this.state.order;
|
||||
|
||||
if (this.sorters && this.sorters[key] && this.mode === 'client') {
|
||||
var sortValue = this[key];
|
||||
|
||||
var comparator = this._makeComparator(key, order, sortValue);
|
||||
this.fullCollection.comparator = comparator;
|
||||
this.fullCollection.sort();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return this;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user