[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: The Alphanum Algorithm for Lua
- From: Ico Doornekamp <lua@...>
- Date: Tue, 3 Jun 2008 19:19:26 +0200
* On 2008-06-03 Petite Abeille <petite.abeille@gmail.com> wrote :
>
> On Jun 3, 2008, at 7:04 PM, Andrew Wilson wrote:
>
>> While trying to do a nice natural sorting style example for Lua based
>> on site http://www.davekoelle.com/alphanum.html site, I wasn't verify
>> satisfied with my example,
>> does anyone have a better method of splitting a string into table of
>> strings and numbers, than my chunkString function below. I know I'm
>> missing some simple string.gmatch way of doing it.
>
>
> FWIW, here is another implementation of the same algorithm:
>
> http://dev.alt.textdrive.com/browser/HTTP/NaturalComparator.lua
That's funny: I swear I have never seen this implementation, but it's
100% the same as the solution I just proposed :)
--
:wq
^X^Cy^K^X^C^C^C^C