WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Gallery
[resolved] NextGen Gallery - Photos in wrong order! (4 posts)

  1. EnergyHandyman
    Member
    Posted 4 months ago #

    I take/manage over 10,000 photos a year on average. Once I took 30,000 in 9 months.
    File organization is my strong suit, at least on my PC it is. However, I am having this recurring problem:
    on my PC 17 photos could be numbered 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17...

    but when I upload to NextGen Gallery, it orders them 1 10 11 12 13 14 15 16 17 2 3 4 5 6 7 8 9...

    http://wordpress.org/plugins/nextgen-gallery/

  2. photocrati
    Member
    Plugin Author

    Posted 4 months ago #

    @EnergyHandyman - The sort order you are seeing is expected. Using the exact example you have the sort value of "1" is before the sort value "10" but this is not due to the ordinal value of the numbers but because "1 " (note the space after the 1) is a "lower" value than "10".

    This carries forward for the values used at "... 16 17 2 3..." where "17" is a "lower" value than "2" (or "2 " to make the comparison items equivalent). In this case, the "1" of the "17" is compared to the "2" directly and "1" is lower so it comes first.

    Unfortunately this is a common "computer sorting" issue and is usually best to work with numeric file names that are of equal length, so for your example "01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17" would sort in precisely that order.

    If you are importing your images with their meta data, you should be able to sort your galleries by date/time and get the order you are expecting provided you are "numbering" your images in a chronological sequence.

    I hope that helps to sort (oops, no pun intended) out this for you.

    Thanks!

    - Cais.

  3. EnergyHandyman
    Member
    Posted 4 months ago #

    Thanks Cais

    This is the problem, I will inspect a property that has lots of different HVAC systems, Plumbing areas, Electrical Work, etc, and at the end of a day I will highlight all the HVAC photos, and use the windows rename function which appends a (1), (2), ... (10), (11)

    So your suggestion, although useful would necessitate manual renaming which is what I am wasting my life doing now.

    What are the chances windows will start using: file(001), file(002) or whatever? haha

  4. photocrati
    Member
    Plugin Author

    Posted 4 months ago #

    @EnergyHandyman - There are (free?) utilities available to bulk rename files that can add formatted prefixes, you could search for one of those. (I used to use one years ago but cannot recall its name.)

    There are also ways to do this with some image processing software as well, for example, Adobe's Camera Raw can have a preset to specifically save image files in a customized file naming convention format.

    - Cais.

Reply

You must log in to post.

About this Plugin

About this Topic