add sorting to author page

This commit is contained in:
KeyboardHammer 2024-02-03 21:48:35 -06:00
parent 432e25565e
commit e2bb0cfb7c
4 changed files with 56 additions and 2 deletions

View file

@ -636,6 +636,7 @@ class LibraryController {
for (const author of authors) {
const oldAuthor = author.getOldAuthor().toJSON()
oldAuthor.numBooks = author.books.length
oldAuthor.lastFirst = author.lastFirst
oldAuthors.push(oldAuthor)
}