Sort so that "Hello" is always before "hello"

Thierry Douez th.douez at gmail.com
Fri May 19 07:06:59 EDT 2017


A slight variation from Hermann's code,
working *only* with ASCII:


sort lines of T numeric by AaZz_sort( each)


function AaZz_sort x
   get chartonum( char 1 of x)
   if IT > 96 then return ( IT - 96) * 2 + 1
   else return ( IT - 64) * 2
end AaZz_sort


I can explain if someone is asking for...

and I have no ideas if the double-sort is faster then this one.


Thierry

------------------------------------------------
Thierry Douez - sunny-tdz.com
sunnYrex - sunnYtext2speech - sunnYperl - sunnYmidi - sunnYmage



More information about the Use-livecode mailing list