From 5f1be9e447db191dcddcdbbbc98d3f7d72b920c4 Mon Sep 17 00:00:00 2001 From: ta264 Date: Wed, 1 Sep 2021 21:04:39 +0100 Subject: [PATCH] Fixed: Previous / Next author buttons sort by last name --- frontend/src/Author/Details/AuthorDetailsConnector.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/Author/Details/AuthorDetailsConnector.js b/frontend/src/Author/Details/AuthorDetailsConnector.js index 1d7108682..5bc1add8c 100644 --- a/frontend/src/Author/Details/AuthorDetailsConnector.js +++ b/frontend/src/Author/Details/AuthorDetailsConnector.js @@ -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];