mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-01 03:29:03 +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) {
|
getBooksWithUserAudiobook(user, books) {
|
||||||
|
Loading…
Reference in New Issue
Block a user