Title: Masonry layout thumbnails sorting
Last modified: January 17, 2018

---

# Masonry layout thumbnails sorting

 *  Resolved [AdiRMG](https://wordpress.org/support/users/adirmg/)
 * (@adirmg)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/masonry-layout-thumbnails-sorting/)
 * Hello.
 * I like your plug-in very much and i am using it for my blog to pull images from
   Zenfolio, but i have something that bothers me.
 * When i select Masonry layout the thumbnails are not correctly sorted.
 * They are sorted like this:
    1 4 7 2 5 8 3 6 9 … instead of like this, the normal
   way: 1 2 3 4 5 6 7 8 9 …
 * How do i make the plugin sort the thumbnails the normal way?

Viewing 1 replies (of 1 total)

 *  Plugin Author [Sayontan Sinha](https://wordpress.org/support/users/sayontan/)
 * (@sayontan)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/masonry-layout-thumbnails-sorting/#post-9875996)
 * Actually Photonic is doing it the correct way. In fact, that is how the browser
   automatically lays out the content – Photonic doesn’t dictate the sequence.
 * Do remember that Masonry is a vertically stacked layout, so things appear in 
   a vertical sort order. Think of a newspaper article, structured in multiple paragraphs.
   After the first paragraph finishes, the second goes _under_ it, not _to the right_
   of it. Each photo is treated like a paragraph of an article by the masonry layout.
 * Also consider this: suppose you have photos of varying heights e.g. from your
   second example if 1 is taller than 2, 5 and 8 put together, then next to 4 you
   will get 11, destroying the perceived sort order. That is why masonry always 
   sequences objects vertically.

Viewing 1 replies (of 1 total)

The topic ‘Masonry layout thumbnails sorting’ is closed to new replies.

 * ![](https://ps.w.org/photonic/assets/icon.svg?rev=1972449)
 * [Photonic Gallery & Lightbox for Flickr, SmugMug & Others](https://wordpress.org/plugins/photonic/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/photonic/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/photonic/)
 * [Active Topics](https://wordpress.org/support/plugin/photonic/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/photonic/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/photonic/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Sayontan Sinha](https://wordpress.org/support/users/sayontan/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/masonry-layout-thumbnails-sorting/#post-9875996)
 * Status: resolved