mirror of
https://github.com/Sonarr/Sonarr
synced 2025-01-04 22:40:51 +00:00
Fixed: Tag details list series in alphabetical order
This commit is contained in:
parent
7ffb2eb440
commit
36088ef49d
1 changed files with 21 additions and 1 deletions
|
@ -9,7 +9,7 @@ function findMatchingItems(ids, items) {
|
|||
});
|
||||
}
|
||||
|
||||
function createMatchingSeriesSelector() {
|
||||
function createUnorderedMatchingSeriesSelector() {
|
||||
return createSelector(
|
||||
(state, { seriesIds }) => seriesIds,
|
||||
createAllSeriesSelector(),
|
||||
|
@ -17,6 +17,26 @@ function createMatchingSeriesSelector() {
|
|||
);
|
||||
}
|
||||
|
||||
function createMatchingSeriesSelector() {
|
||||
return createSelector(
|
||||
createUnorderedMatchingSeriesSelector(),
|
||||
(series) => {
|
||||
return series.sort((seriesA, seriesB) => {
|
||||
const sortTitleA = seriesA.sortTitle;
|
||||
const sortTitleB = seriesB.sortTitle;
|
||||
|
||||
if (sortTitleA > sortTitleB) {
|
||||
return 1;
|
||||
} else if (sortTitleA < sortTitleB) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
});
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
function createMatchingDelayProfilesSelector() {
|
||||
return createSelector(
|
||||
(state, { delayProfileIds }) => delayProfileIds,
|
||||
|
|
Loading…
Reference in a new issue