If you can't pad the numbers, I think what you need is a natural
sort...kinda the way php does it:
http://us4.php.net/manual/en/function.natsort.php

Kerry's option may also work well, and faster than an implementation of
how php does it...especially if you have to code such a thing in lingo.
Lingo does a pretty good job messing around with bits of text.

~Mathew


> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of g schafer
> Sent: Tuesday, August 26, 2003 10:53 AM
> To: Lingo
> Subject: <lingo-l> BaFileList() and .sort
> 
> 
> So I'm using baFileList with a list of files as such:
> 
> slide1.jpg, slide2.jpg, slide3.jpg......slide10.jpg, slide11.jpg
> 
> When I do a sort on this list I always get
> slide1.jpg, slide10.jpg, slide11.jpg, slide2.jpg
> 
> I thought sorting it would flip it all in order?
> 
> Any ideas?
> 
> My first thought is going 1 --> x and creating a new list 
> with each entry
> being made at it's number....but that seems like a crazy workaround.
> 
> I can't renumber the files ie 001...



[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]

Reply via email to