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

Thierry Douez th.douez at gmail.com
Fri May 19 18:05:08 CEST 2017


​Hallo Hermann,
​

>
>> sort lines of T numeric by each & AaZz_sort( each) ?
>> sort lines of T
>>
>> Else the container is sorted by the first char of each line only.
>>
>
>
​Ok, I can't find a way to do it with a single sort.

Therefore your solution 1st or mine adding a
second sort after it.

Enjoy your week-ed,

Thierry
​

​Yes, you are right, so I rewrite it a bit to be more *readable*:
>
>
> sort lines of T numeric by AaZz_sort(char 1 of each)
>
> function AaZz_sort x
>    get chartonum( x)
>    if IT > 96 then return ( IT - 96) * 2 + 1
>    else return ( IT - 64) * 2
> end AaZz_sort
>>

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


More information about the use-livecode mailing list