thanks Sean, I'll take a look.
i'm looking at Martin Pool's code at the moment -
sourcefrog.net/projects/natsort/ - which works for most filenames but
needs some tweaking.
julian
On 6 Jul 2006, at 15:02, Sean Wilson wrote:
The free PRegEx xtra <http://www.openxtras.org/pregex/> has a sort
method allowing you to create your own sorting function as a callback.
I had a try with the list you provided as an example, and the
following works, but
The reason I'm after an algorithm is that the integers may exist
anywhere within the string.
herein lies the issue - knowing your data is at least half the battle.
Anyway, here's an attempt that might get you started:
--
[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!]