From 8a0c268973ab2b7c009c8b58851df7c879ab5694 Mon Sep 17 00:00:00 2001 From: Frank Riley Date: Sat, 31 Aug 2019 15:09:41 -0700 Subject: [PATCH] Always have last sort of movies be by production year. Implement https://features.jellyfin.org/posts/151/movies-should-always-have-a-second-sort-of-release-date --- src/controllers/movies/movies.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/controllers/movies/movies.js b/src/controllers/movies/movies.js index 1ee558e6e3..e0a5947ca6 100644 --- a/src/controllers/movies/movies.js +++ b/src/controllers/movies/movies.js @@ -140,31 +140,31 @@ define(["loading", "layoutManager", "userSettings", "events", "libraryBrowser", libraryBrowser.showSortMenu({ items: [{ name: Globalize.translate("OptionNameSort"), - id: "SortName" + id: "SortName,ProductionYear" }, { name: Globalize.translate("OptionImdbRating"), - id: "CommunityRating,SortName" + id: "CommunityRating,SortName,ProductionYear" }, { name: Globalize.translate("OptionCriticRating"), - id: "CriticRating,SortName" + id: "CriticRating,SortName,ProductionYear" }, { name: Globalize.translate("OptionDateAdded"), - id: "DateCreated,SortName" + id: "DateCreated,SortName,ProductionYear" }, { name: Globalize.translate("OptionDatePlayed"), - id: "DatePlayed,SortName" + id: "DatePlayed,SortName,ProductionYear" }, { name: Globalize.translate("OptionParentalRating"), - id: "OfficialRating,SortName" + id: "OfficialRating,SortName,ProductionYear" }, { name: Globalize.translate("OptionPlayCount"), - id: "PlayCount,SortName" + id: "PlayCount,SortName,ProductionYear" }, { name: Globalize.translate("OptionReleaseDate"), - id: "PremiereDate,SortName" + id: "PremiereDate,SortName,ProductionYear" }, { name: Globalize.translate("OptionRuntime"), - id: "Runtime,SortName" + id: "Runtime,SortName,ProductionYear" }], callback: function() { query.StartIndex = 0, userSettings.saveQuerySettings(savedQueryKey, query), itemsContainer.refreshItems() @@ -189,7 +189,7 @@ define(["loading", "layoutManager", "userSettings", "events", "libraryBrowser", savedQueryKey = params.topParentId + "-" + options.mode, savedViewKey = savedQueryKey + "-view", query = { - SortBy: "SortName", + SortBy: "SortName,ProductionYear", SortOrder: "Ascending", IncludeItemTypes: "Movie", Recursive: !0,