From 05f6a29340893c68a7f3eb446eb731b8f407dea5 Mon Sep 17 00:00:00 2001 From: "claude[bot]" <41898282+claude[bot]@users.noreply.github.com> Date: Wed, 29 Jul 2026 02:22:55 +0000 Subject: [PATCH] Document future Media Library sorting feature Uncomment and expand the Sorting assets section with full details of the sort dropdown (Sort by, Sort direction, Folders groups), URL-based state persistence, folder interleaving behavior, view toggle redesign, and checkbox-only asset selection behavior. Based on strapi/strapi#27105. --- docusaurus/docs/cms/features/media-library.md | 35 +++++++++++++------ 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/docusaurus/docs/cms/features/media-library.md b/docusaurus/docs/cms/features/media-library.md index 789c89de82..5054c20872 100644 --- a/docusaurus/docs/cms/features/media-library.md +++ b/docusaurus/docs/cms/features/media-library.md @@ -612,19 +612,34 @@ When active, filters are displayed next to the ! - + + +The **Sort** button in the toolbar opens a dropdown with 3 mutually exclusive option groups. Exactly 1 option per group is active at a time, indicated by a checkmark. Clicking the active option resets it to that group's default. The dropdown stays open while you pick options. + +| Group | Options | +|-------|---------| +| **Sort by** | Oldest uploads · Most recent updates *(default)* | +| **Sort direction** | A to Z · Z to A · File size increasingly · File size decreasingly | +| **Folders** | On top *(default)* · Mixed with files | + +:::note +The **Folders** group only appears in the table view. In the grid view, folders always display in a full-width band at the top and this group is hidden. +::: + +The active sort is encoded in the URL (`?sort=` and `?folders=mixed`). This makes sort state shareable and preserved on page refresh and browser navigation. Changing the sort resets infinite scroll and clears the current bulk selection. + +When **Mixed with files** is active (table view), folders are interleaved with assets according to the active sort order. For size-based rules, folders sort as size 0. Folders that may still be preceded by not-yet-loaded assets remain deferred until their page loads. + +The future Media Library also includes these interface changes: + +- The view toggle between list and grid uses a redesigned appearance: a grey track with a white active segment. +- Asset selection is checkbox-only. Clicking an asset row or card opens the asset details panel. To select assets for bulk actions, use the checkbox on the asset. ### Adding assets