close #1180 - add sort by fileName (#1482)

This commit is contained in:
Ionuț Staicu
2025-10-31 01:23:47 -06:00
committed by GitHub
parent 14692b0176
commit 529522cf74
4 changed files with 6 additions and 1 deletions
@@ -38,7 +38,8 @@ export class SortService {
.every((key) => book.metadata?.[key] === true),
lastReadTime: (book) => book.lastReadTime ? new Date(book.lastReadTime).getTime() : null,
addedOn: (book) => book.addedOn ? new Date(book.addedOn).getTime() : null,
fileSizeKb: (book) => book.fileSizeKb || null
fileSizeKb: (book) => book.fileSizeKb || null,
fileName:(book) => book.fileName,
};
applySort(books: Book[], selectedSort: SortOption | null): Book[] {