mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 13:10:13 -07:00
Fixed: Tag details list series in alphabetical order
Co-Authored-By: Mark McDowall <markus101@users.noreply.github.com>
This commit is contained in:
parent
8af09595fb
commit
67822e6214
1 changed files with 21 additions and 1 deletions
|
@ -9,7 +9,7 @@ function findMatchingItems(ids, items) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function createMatchingArtistSelector() {
|
function createUnorderedMatchingArtistSelector() {
|
||||||
return createSelector(
|
return createSelector(
|
||||||
(state, { artistIds }) => artistIds,
|
(state, { artistIds }) => artistIds,
|
||||||
createAllArtistSelector(),
|
createAllArtistSelector(),
|
||||||
|
@ -17,6 +17,26 @@ function createMatchingArtistSelector() {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function createMatchingArtistSelector() {
|
||||||
|
return createSelector(
|
||||||
|
createUnorderedMatchingArtistSelector(),
|
||||||
|
(artists) => {
|
||||||
|
return artists.sort((artistA, artistB) => {
|
||||||
|
const sortNameA = artistA.sortName;
|
||||||
|
const sortNameB = artistB.sortName;
|
||||||
|
|
||||||
|
if (sortNameA > sortNameB) {
|
||||||
|
return 1;
|
||||||
|
} else if (sortNameA < sortNameB) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
function createMatchingDelayProfilesSelector() {
|
function createMatchingDelayProfilesSelector() {
|
||||||
return createSelector(
|
return createSelector(
|
||||||
(state, { delayProfileIds }) => delayProfileIds,
|
(state, { delayProfileIds }) => delayProfileIds,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue