mirror of
https://github.com/Readarr/Readarr
synced 2025-12-16 05:12:42 +01:00
Fixed: Tag details list series in alphabetical order
Co-Authored-By: Mark McDowall <markus101@users.noreply.github.com> Signed-off-by: Robin Dadswell <robin@dadswell.email>
This commit is contained in:
parent
3b656e05a2
commit
6b8d2a60a7
1 changed files with 20 additions and 0 deletions
|
|
@ -17,6 +17,26 @@ function createMatchingAuthorSelector() {
|
|||
);
|
||||
}
|
||||
|
||||
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() {
|
||||
return createSelector(
|
||||
(state, { delayProfileIds }) => delayProfileIds,
|
||||
|
|
|
|||
Loading…
Reference in a new issue