Title: Problem with default sorting
Last modified: July 30, 2018

---

# Problem with default sorting

 *  Resolved [ben1arh](https://wordpress.org/support/users/ben1drg/)
 * (@ben1drg)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/problem-with-default-sorting/)
 * After the last update, the default sorting does not work properly anymore. I 
   place the pictures in the order I want them, but on gallery preview it show a
   different order and on pageview again a different order. There are gaps between
   images on the bottom line of pictures.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fproblem-with-default-sorting%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [bradvin](https://wordpress.org/support/users/bradvin/)
 * (@bradvin)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/problem-with-default-sorting/#post-10542573)
 * There are 2 issues here it seems.
 * 1. The ordering of the images in your gallery
    2. The spacing of the images on
   the last row using the masonry layout.
 * For 1, I will test out the image ordering to see if I can reproduce the ordering
   issue.
 * For 2, I will have to investigate further
 *  Thread Starter [ben1arh](https://wordpress.org/support/users/ben1drg/)
 * (@ben1drg)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/problem-with-default-sorting/#post-10543041)
 * Maybe good to know, I have 4 galleries and the problem occurs only with one of
   them.
    So probably this gallery is somehow damaged. It is the one I use most 
   and the one that changes the most. Almost daily new images added, images removed
   and changing of order. I will make this gallery again from scratch and replace
   it. …. I did just that, replaced the old gallery with the new one and it looks
   exactly the same as the old one, same problem with the default order. Any ideas
   how to fix this?
    -  This reply was modified 7 years, 10 months ago by [ben1arh](https://wordpress.org/support/users/ben1drg/).
 *  Plugin Author [bradvin](https://wordpress.org/support/users/bradvin/)
 * (@bradvin)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/problem-with-default-sorting/#post-10545131)
 * Can you try changing the gallery to Responsive Image Gallery rather than the 
   Masonry.
    I want to figure out if the gallery template has something to do with
   the problem
 * thanks
 *  Thread Starter [ben1arh](https://wordpress.org/support/users/ben1drg/)
 * (@ben1drg)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/problem-with-default-sorting/#post-10550365)
 * Hello again, I did as you asked and a strange thing happened.
    After changing
   to Responsive Image Gallery the order displayed was correct, both in preview 
   and pageview. Then I changed the gallery back to Masonry and surprise surprise,
   the order now was displayed correct, also both in preview and pageview. For now
   my problem seems to be solved, but I can’t tell if this will happen again or 
   what was the cause of the problem. Any ideas on that? Thank you.
 *  Thread Starter [ben1arh](https://wordpress.org/support/users/ben1drg/)
 * (@ben1drg)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/problem-with-default-sorting/#post-10562885)
 * [@bradvin](https://wordpress.org/support/users/bradvin/)
    I found out it has 
   to do with thumb width. I have masonry gallery with fixed width and the thumb
   with set to 200. After changing tot responsive image gallery and back to masonry
   gallery, the thumb with was reset to 150. That is when all looks good, as intended.
   When I change the thumb width to 200, the error in display order occurs. Setting
   it back to 150 solves it.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Problem with default sorting’ is closed to new replies.

 * ![](https://ps.w.org/foogallery/assets/icon-256x256.gif?rev=2602542)
 * [Photo Gallery by FooGallery : Responsive Image Gallery, Masonry Gallery & Carousel](https://wordpress.org/plugins/foogallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/foogallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/foogallery/)
 * [Active Topics](https://wordpress.org/support/plugin/foogallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/foogallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/foogallery/reviews/)

## Tags

 * [default sorting](https://wordpress.org/support/topic-tag/default-sorting/)

 * 5 replies
 * 2 participants
 * Last reply from: [ben1arh](https://wordpress.org/support/users/ben1drg/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/problem-with-default-sorting/#post-10562885)
 * Status: resolved