Title: Problem with Image ID &#8211; sorting method
Last modified: October 30, 2021

---

# Problem with Image ID – sorting method

 *  Resolved [dreamtours](https://wordpress.org/support/users/dreamtours/)
 * (@dreamtours)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/problem-with-image-id-sorting-method/)
 * Dear friends,
 * We have a problem with the Image ID sorting method. I will try to describe it,
   but I also have a video for the problem and it was posted on YouTube.
 * We had a very old version of the plugin, but we updated it today. We have 900
   + galleries, and they are all sorted using the ID image – ASC sorting method.
 * When we try to create a new gallery, we add an image – Image 1, Image 2… Sorting
   on the Add Galleries screen is good, but when we manage that gallery, the ID 
   and file name are not appropriate. My example: ID-40106 has image 1, ID 40107
   has image 4 … I think smaller ID get images that uploaded faster.
 * We tested this without cache plugin, we cleared image cache in plugin. We canot
   change sorting order now, because all 900+ galeries go crazy. Can you please 
   tell us how to resolve this problem?
 * Here is the video for problem – [https://youtu.be/RT_EOoKCqtA](https://youtu.be/RT_EOoKCqtA)
 * Thanks a lot.

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

 *  Plugin Contributor [Imagely](https://wordpress.org/support/users/imagely/)
 * (@imagely)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/problem-with-image-id-sorting-method/#post-15024645)
 * Hi [@dreamtours](https://wordpress.org/support/users/dreamtours/),
 * I’m afraid this is the case and there’s not much that can be done aside of manually
   re-ordering the images from `Manage Galleries` or from the `Insert Gallery Window`
   the way you wanted it it display.
 * Back in November 2020 we had to replace `plupload.js` with `uppy.js` because 
   of plupload getting deprecated and not receiving any other updates from the its
   author.
 * That’s a specific of `uppy.js` script that we use for importing images and that’s
   doing its thing with optimizing the uploading by parallelly uploading the images
   and uploading them based on their size ( smaller first ). So theoretically, if
   the size of the images that you will upload will be mostly similar – it may upload
   the images in the sequence you’ll add them to the uploader’s area. Also, there’s
   a constant that can be added to`wp_config.php` to disable the parallel uploads
   but I’m not quite sure that it would change anything regarding the sequence though:
 * `define('NGG_UPLOAD_LIMIT', 1);`
 *  Thread Starter [dreamtours](https://wordpress.org/support/users/dreamtours/)
 * (@dreamtours)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/problem-with-image-id-sorting-method/#post-15062865)
 * Thank you [@imagely](https://wordpress.org/support/users/imagely/), its working
   now. We put your define in wp_config.php, and now it is as it should be.
 * Thank you very much for great support.

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

The topic ‘Problem with Image ID – sorting method’ is closed to new replies.

 * ![](https://ps.w.org/nextgen-gallery/assets/icon-256x256.png?rev=2083961)
 * [Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery](https://wordpress.org/plugins/nextgen-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-gallery/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [dreamtours](https://wordpress.org/support/users/dreamtours/)
 * Last activity: [4 years, 7 months ago](https://wordpress.org/support/topic/problem-with-image-id-sorting-method/#post-15062865)
 * Status: resolved