You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature] Sort images + rearrange in Gallery Block #24578
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.
Reacted by Jeremy Herve, The Hunger Project, UltraBurstXD and Nicolas Brouard
@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?
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:
New Block missing:
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.
@CarlosFerrari fantastic! Thank you for these wonderful screenshots. I figured I was missing something and this will be very useful for others upon review.
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.
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?
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.
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).
Activity
annezazu commentedon Aug 14, 2020
@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?
0xC40xFErr commentedon Aug 16, 2020
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:

New Block missing:

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:

New Block:

annezazu commentedon Aug 16, 2020
@CarlosFerrari fantastic! Thank you for these wonderful screenshots. I figured I was missing something and this will be very useful for others upon review.
StaggerLeee commentedon Sep 5, 2020
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.
supernovia commentedon Sep 3, 2021
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?
nicolasbrouard commentedon Sep 19, 2022
I think it would also be very nice to be able to sort images in a gallery by date (from the exif)
grappler commentedon Oct 25, 2023
I have over 600 photos and would like to reverse the order.
leobard commentedon Aug 9, 2026
+1 for sorting (by name, date, ...)
ramonjd commentedon Aug 10, 2026
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.
andrewserong commentedon Aug 10, 2026
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.
andrewserong commentedon Aug 10, 2026
Also, this issue looks somewhat related / very similar to #15370
andrewserong commentedon Sep 28, 2026
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).