diff --git a/client/store/user.js b/client/store/user.js index c5daa9ce..58652fa5 100644 --- a/client/store/user.js +++ b/client/store/user.js @@ -75,6 +75,9 @@ export const actions = { if (state.settings.orderBy == 'media.duration') { settingsUpdate.orderBy = 'media.numTracks' } + if (state.settings.orderBy == 'media.metadata.publishedYear') { + settingsUpdate.orderBy = 'media.metadata.title' + } var invalidFilters = ['series', 'authors', 'narrators', 'languages', 'progress', 'issues'] var filterByFirstPart = (state.settings.filterBy || '').split('.').shift() if (invalidFilters.includes(filterByFirstPart)) {