mirror of
https://github.com/Readarr/Readarr.git
synced 2026-09-20 02:06:40 -04:00
Fixed: Previous / Next author buttons sort by last name
This commit is contained in:
1 parent
c9cb0a9774
commit
5f1be9e447
1 file changed
+1
-1
@@ -96,7 +96,7 @@ function createMapStateToProps() {
|
||||
createCommandsSelector(),
|
||||
createDimensionsSelector(),
|
||||
(titleSlug, books, series, bookFiles, allAuthors, commands, dimensions) => {
|
||||
const sortedAuthor = _.orderBy(allAuthors, 'sortName');
|
||||
const sortedAuthor = _.orderBy(allAuthors, 'sortNameLastFirst');
|
||||
const authorIndex = _.findIndex(sortedAuthor, { titleSlug });
|
||||
const author = sortedAuthor[authorIndex];
|
||||
|
||||
|
||||
Reference in new issue
Block a user