diff --git a/komga-webui/src/views/BrowseLibraries.vue b/komga-webui/src/views/BrowseLibraries.vue index 60e67bf90..f3ba6bab9 100644 --- a/komga-webui/src/views/BrowseLibraries.vue +++ b/komga-webui/src/views/BrowseLibraries.vue @@ -266,6 +266,7 @@ export default Vue.extend({ {name: this.$t('sort.name').toString(), key: 'metadata.titleSort'}, {name: this.$t('sort.date_added').toString(), key: 'createdDate'}, {name: this.$t('sort.date_updated').toString(), key: 'lastModifiedDate'}, + {name: this.$t('sort.release_date').toString(), key: 'booksMetadata.releaseDate'}, {name: this.$t('sort.folder_name').toString(), key: 'name'}, {name: this.$t('sort.books_count').toString(), key: 'booksCount'}, ] as SortOption[] diff --git a/komga/src/main/kotlin/org/gotson/komga/infrastructure/jooq/SeriesDtoDao.kt b/komga/src/main/kotlin/org/gotson/komga/infrastructure/jooq/SeriesDtoDao.kt index 8d17b6a2c..1404bba48 100644 --- a/komga/src/main/kotlin/org/gotson/komga/infrastructure/jooq/SeriesDtoDao.kt +++ b/komga/src/main/kotlin/org/gotson/komga/infrastructure/jooq/SeriesDtoDao.kt @@ -76,6 +76,7 @@ class SeriesDtoDao( "created" to s.CREATED_DATE, "lastModifiedDate" to s.LAST_MODIFIED_DATE, "lastModified" to s.LAST_MODIFIED_DATE, + "booksMetadata.releaseDate" to bma.RELEASE_DATE, "collection.number" to cs.NUMBER, "name" to lower(s.NAME.udfStripAccents()), "booksCount" to s.BOOK_COUNT,