Random sort option for libraries and shelves (#1817)

This commit is contained in:
Muppetteer
2025-12-10 20:43:18 -07:00
committed by GitHub
parent 78d8f8e596
commit 73b27944e2
3 changed files with 4 additions and 1 deletions
@@ -95,6 +95,7 @@ export class SortService {
addedOn: (book) => book.addedOn ? new Date(book.addedOn).getTime() : null,
fileSizeKb: (book) => book.fileSizeKb || null,
fileName: (book) => book.fileName,
random: (book) => Math.random(),
};
applySort(books: Book[], selectedSort: SortOption | null): Book[] {