Results 1 to 2 of 2

Thread: Sort?

  1. #1
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default Sort?



    John this is probably a stupid question:
    What about the .jpg? It can't sort that? Does that get removed earlier in the script?
    Last edited by jscheuer1; 12-24-2008 at 03:47 PM. Reason: moved from another thread
    Jeremy | jfein.net

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by Nile View Post
    John this is probably a stupid question:
    What about the .jpg? It can't sort that? Does that get removed earlier in the script?
    Sorting starts from the beginning of each string, as soon as the alphanumeric order of each string is determined, the rest of the string is ignored, regardless of how long it is. So:

    0z.jpg

    would come before:

    1abcdefg.jpg

    But this points up how consistency in the file naming convention must be applied. Dates and months that can be expressed as singe digits must be padded with a preceding 0, as I did in my example, using 01 for January, etc. So, as another example, May 8th, 2007 should be named:

    20070508.jpg
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •