Co-authored-by: Eduardo <eo@wavecode.com>
This commit is contained in:
@@ -7,6 +7,7 @@ export class BookSorter {
|
||||
{label: 'Title', field: 'title', direction: SortDirection.ASCENDING},
|
||||
{label: 'Title + Series', field: 'titleSeries', direction: SortDirection.ASCENDING},
|
||||
{label: 'File Name', field: 'fileName', direction: SortDirection.ASCENDING},
|
||||
{label: 'File Path', field: 'filePath', direction: SortDirection.ASCENDING},
|
||||
{label: 'Author', field: 'author', direction: SortDirection.ASCENDING},
|
||||
{label: 'Author (Surname)', field: 'authorSurnameVorname', direction: SortDirection.ASCENDING},
|
||||
{label: 'Author + Series', field: 'authorSeries', direction: SortDirection.ASCENDING},
|
||||
|
||||
@@ -103,6 +103,7 @@ export class SortService {
|
||||
addedOn: (book) => book.addedOn ? new Date(book.addedOn).getTime() : null,
|
||||
fileSizeKb: (book) => book.fileSizeKb || null,
|
||||
fileName: (book) => book.fileName,
|
||||
filePath: (book) => book.filePath,
|
||||
random: (book) => Math.random(),
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user