The sort order is updated in the block within the layout builder after a media-gallery is modified. The sort order is no longer "as-is" but is now sorted by date added.

  • Create media-gallery
  • Use it in a Media-album (block in layout-builder (Sorting is as-is) > Save lay-out
  • Change the Media-Gallery > Adjust the image-order > Album is correct in the node
  • Change the layout > Album-block > Change a setting (fi grid columns) > Save layout

Proposed resolution

Please include an option to specify the desired sorting order: the current order or based on the media entity’s delta. The sorting can be global or per node. I have no preference.
This sorting option will leave existing installations unchanged.
Attached is my modification to enable the desired sorting.

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
GalleryBlock.zip5 KBpurefoxy
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

purefoxy created an issue. See original summary.

ivnish made their first commit to this issue’s fork.

ivnish’s picture

Version: 3.2.3 » 3.3.x-dev
Assigned: Unassigned » ivnish

ivnish’s picture

Category: Feature request » Bug report
ivnish’s picture

Title: Sort order ruined in Media-album after een alter » GalleryBlock ignores gallery image order and reverse setting

  • ivnish committed 9d200d24 on 3.3.x
    fix: #3593870 GalleryBlock ignores gallery image order and reverse...
ivnish’s picture

Assigned: ivnish » Unassigned
Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.