From 866d510d2b95c7f7822ef0f740fe61bb1d349f37 Mon Sep 17 00:00:00 2001 From: theguymadmax <171496228+theguymadmax@users.noreply.github.com> Date: Fri, 16 Jan 2026 13:25:33 -0500 Subject: [PATCH] Backport pull request #7498 from jellyfin-web/release-10.11.z Add sort options to movie collections in the experimental layout Original-merge: bf70fb80aaafae5b22589d06118eeec75d39874d Merged-by: thornbill Backported-by: thornbill --- src/apps/experimental/components/library/SortButton.tsx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/apps/experimental/components/library/SortButton.tsx b/src/apps/experimental/components/library/SortButton.tsx index 6e8acf8b9..984265027 100644 --- a/src/apps/experimental/components/library/SortButton.tsx +++ b/src/apps/experimental/components/library/SortButton.tsx @@ -22,6 +22,14 @@ type SortOption = { type SortOptionsMapping = Record; +const collectionMovieOptions: SortOption[] = [ + { label: 'Name', value: ItemSortBy.SortName }, + { label: 'OptionCommunityRating', value: ItemSortBy.CommunityRating }, + { label: 'OptionDateAdded', value: ItemSortBy.DateCreated }, + { label: 'OptionParentalRating', value: ItemSortBy.OfficialRating }, + { label: 'OptionReleaseDate', value: ItemSortBy.PremiereDate } +]; + const movieOrFavoriteOptions = [ { label: 'Name', value: ItemSortBy.SortName }, { label: 'OptionRandom', value: ItemSortBy.Random }, @@ -43,6 +51,7 @@ const photosOrPhotoAlbumsOptions = [ const sortOptionsMapping: SortOptionsMapping = { [LibraryTab.Movies]: movieOrFavoriteOptions, + [LibraryTab.Collections]: collectionMovieOptions, [LibraryTab.Favorites]: movieOrFavoriteOptions, [LibraryTab.Series]: [ { label: 'Name', value: ItemSortBy.SortName },