Sort question
Jim Ault
jimaultwins at yahoo.com
Sun Oct 3 10:47:50 EDT 2010
use word -1 of item 1 of blahblah
to get the last word
On Oct 3, 2010, at 7:43 AM, Yves COPPE wrote:
>
> Le 03-oct.-10 à 16:32, Ben Rubinstein a écrit :
>
>> This is really the same as Mark suggested, but should work even if
>> the numbers aren't zero padded:
>>
>> function sortByMonthAndDay tText
>> set the itemDelimiter to "/"
>> sort lines of tText ascending numeric by item 1 of (word 2 of each)
>> sort lines of tText ascending numeric by item 2 of (word 2 of each)
>> return tText
>> end mouseUp
>>
>> (I think Mark probably meant "&" instead of "and")
>>
>> Ben
>
>
>
>
>
> hi Ben
>
> I still have a problem
>
> some first names have 2 words !!!
>
> and the sort is not correct
>
> Should it be possible to sort on item 2 (tab delim of the list) and
> reorder the lsit afterwards ??
>
>
> Greetings.
>
> Yves COPPE
> yvescoppe at skynet.be
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
Jim Ault
Las Vegas
More information about the use-livecode
mailing list