Edit: This Thread refers back to: http://www.dynamicdrive.com/forums/s...ad.php?t=40007
John this is probably a stupid question:
What about the .jpg? It can't sort that? Does that get removed earlier in the script?
Edit: This Thread refers back to: http://www.dynamicdrive.com/forums/s...ad.php?t=40007
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
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