mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-14 09:03:49 -07:00
Fixed: Initial sorting for Next Airing
This commit is contained in:
parent
442ab2b7c4
commit
4962db3b6a
3 changed files with 36 additions and 28 deletions
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue