feat: order books by release date

closes #318
This commit is contained in:
Gauthier Roebroeck 2020-09-28 17:39:55 +08:00
parent c8c0c46b46
commit e3bb8bc7ae
2 changed files with 7 additions and 4 deletions

View File

@ -241,10 +241,12 @@ export default Vue.extend({
pageSize: 20,
totalPages: 1,
totalElements: null as number | null,
sortOptions: [{ name: 'Number', key: 'metadata.numberSort' }, { name: 'Date added', key: 'createdDate' }, {
name: 'File size',
key: 'fileSize',
}] as SortOption[],
sortOptions: [
{ name: 'Number', key: 'metadata.numberSort' },
{ name: 'Date added', key: 'createdDate' },
{ name: 'Release date', key: 'metadata.releaseDate' },
{ name: 'File size', key: 'fileSize' },
] as SortOption[],
sortActive: {} as SortActive,
sortDefault: { key: 'metadata.numberSort', order: 'asc' } as SortActive,
filterOptionsList: {

View File

@ -55,6 +55,7 @@ class BookDtoDao(
"media.comment" to DSL.lower(m.COMMENT),
"media.mediaType" to DSL.lower(m.MEDIA_TYPE),
"metadata.numberSort" to d.NUMBER_SORT,
"metadata.releaseDate" to d.RELEASE_DATE,
"readProgress.lastModified" to r.LAST_MODIFIED_DATE,
"readList.number" to rlb.NUMBER
)