Skip to content

[Feature] Sort images + rearrange in Gallery Block #24578

Closed

Description

@0xC40xFErr

There is a missing feature that was present in classic editor that is sorting imagens by file name.
I am a photographer and depending how images are uploaded into server they might be out of order, that's why sorting by file is needed. Something is around 50+ photos per post and it is a pain/undoable by hand.

Another nice feature would be about rearrange, being able to select with shift/ctrl pressed and then drag photos to a custom order. Would be much easier than doing it one by one.

Activity

  1. added
    [Block] Gallery
    [Type] Enhancement
    on Aug 14, 2020
  2. annezazu commented on Aug 14, 2020

    @annezazu
    Contributor

    @CarlosFerrari Thanks for sharing this insight as a photographer! By chance, are you referring to this screen and option to filter in the screenshot below?

    Screen Shot 2020-08-14 at 5 29 14 PM

  3. 0xC40xFErr commented on Aug 16, 2020

    @0xC40xFErr
    Author

    Hi @annezazu
    In fact it's another option (attached), when editing the gallery there's an option to invert order, that's missing from the new blocks, and would be nice to have the option to sort by file name as well.

    Classic Block:
    Screen Shot 2020-08-16 at 10 27 48

    New Block missing:
    Screen Shot 2020-08-16 at 10 27 33

    And another thing, I just noticed the edit gallery option when inside the blocks is buried at the bottom of the gallery block (go to bottom the block > media gallery > edit gallery), in the classic it stays at the top with the pencil leading to edit it directly, which makes it easy to spot.

    Classic Block:
    Screen Shot 2020-08-16 at 10 36 49

    New Block:
    Screen Shot 2020-08-16 at 10 37 36

  4. annezazu commented on Aug 16, 2020

    @annezazu
    Contributor

    @CarlosFerrari fantastic! Thank you for these wonderful screenshots. I figured I was missing something and this will be very useful for others upon review.

  5. StaggerLeee commented on Sep 5, 2020

    @StaggerLeee

    I see one problem too. Once one image in gallery is marked for editing and options to upload, media library etc are visible, there is no way to get out of this view. I believed clicking X will lead me back to image view but not, image is deleted from gallery. It is somehow bad implementation. Second problem is this white view of what to do with marked image is not possible to click inside once User clicked on some other image in gallery.

  6. supernovia commented on Sep 3, 2021

    @supernovia

    Just noting I was trying to help someone edit their gallery order today, and almost filed a feature request because I couldn't find the setting. (That's how I found this issue.) Can we make the edit gallery more easily discoverable... perhaps in the gallery block's toolbar?

  7. nicolasbrouard commented on Sep 19, 2022

    @nicolasbrouard

    I think it would also be very nice to be able to sort images in a gallery by date (from the exif)

  8. grappler commented on Oct 25, 2023

    @grappler
    Member

    I have over 600 photos and would like to reverse the order.

  9. leobard commented on Aug 9, 2026

    @leobard

    +1 for sorting (by name, date, ...)

  10. ramonjd commented on Aug 10, 2026

    @ramonjd
    Member

    cc @andrewserong for visibility

    Could be something specific to the gallery block.

    Not sure if it'll be on our roadmap in the next cycle, but the feature makes sense to me.

  11. andrewserong commented on Aug 10, 2026

    @andrewserong
    Contributor

    Could be something specific to the gallery block.
    Not sure if it'll be on our roadmap in the next cycle, but the feature makes sense to me.

    Oh, good note! Yeah, this is an interesting one. We added some order by / sorting controls for the dynamic mode of the gallery block in 7.1, so perhaps there's an opportunity to create a version of that ordering that can work for the static instance of a gallery. It'd need to look up by id to perform the ordering, and it would be an action you apply to a static list instead of something that continually updates automatically (like the dynamic mode of the block), but I can see this being useful, too.

    I'm planning to write up a 7.2 wish list issue that covers dynamic gallery block follow-ups and some other ideas, so I'll pull this in too.

  12. andrewserong commented on Aug 10, 2026

    @andrewserong
    Contributor

    Also, this issue looks somewhat related / very similar to #15370

  13. andrewserong commented on Sep 28, 2026

    @andrewserong
    Contributor

    Closing as fixed by #83438 which adds Order By controls to the static mode of the Gallery block (matching the controls we have in the dynamic mode of the block).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] Gallery[Type] Enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions