Skip to content

Is there a way to reverse the default order of image display in Masonry? #1200

Description

@atxaga1234

I'm using Masonry in conjunction with Bootstrap 5 to make a photo gallery page on my website. This is working nicely BUT the default display order for Masonry is by file name (from the camera) in descending order, so the most recent photos are displayed first (reverse chronological). This is fine for some galleries but doesn't make much sense for others (e.g. for an event, I'd prefer to see the images in a chronological order, from oldest to newest).

Is there a way to modify the default order?

Any help would be greatly appreciated. Thanks!

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions