fix(webui): latest books on dashboard not sorted properly

This commit is contained in:
Gauthier Roebroeck 2021-09-10 15:53:13 +08:00
parent 2f8b62c7ed
commit b691f3098b

View file

@ -353,7 +353,7 @@ export default Vue.extend({
() => this.$komgaBooks.getBooksOnDeck(this.getRequestLibraryId(libraryId)), () => this.$komgaBooks.getBooksOnDeck(this.getRequestLibraryId(libraryId)),
) )
this.loaderLatestBooks = new PageLoader<BookDto>( this.loaderLatestBooks = new PageLoader<BookDto>(
{sort: ['metadata.title,desc']}, {sort: ['createdDate,desc']},
(pageable: PageRequest) => this.$komgaBooks.getBooks(this.getRequestLibraryId(libraryId), pageable), (pageable: PageRequest) => this.$komgaBooks.getBooks(this.getRequestLibraryId(libraryId), pageable),
) )
this.loaderRecentlyReleasedBooks = new PageLoader<BookDto>( this.loaderRecentlyReleasedBooks = new PageLoader<BookDto>(