mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-28 17:49:06 +01:00
Fix:Sort books for series #220
This commit is contained in:
parent
04cbc49577
commit
c17af1fc28
@ -90,7 +90,13 @@ module.exports = {
|
||||
}
|
||||
}
|
||||
})
|
||||
return Object.values(_series)
|
||||
return Object.values(_series).map((series) => {
|
||||
series.books = sort(series.books).asc(ab => {
|
||||
if (!isNaN(ab.book.volumeNumber) && ab.book.volumeNumber !== null) return Number(ab.book.volumeNumber)
|
||||
return ab.book.volumeNumber
|
||||
})
|
||||
return series
|
||||
})
|
||||
},
|
||||
|
||||
getBooksWithUserAudiobook(user, books) {
|
||||
|
Loading…
Reference in New Issue
Block a user