Sort question

Yves COPPE yvescoppe at skynet.be
Sun Oct 3 10:39:33 EDT 2010


Le 03-oct.-10 à 16:31, Jim Ault a écrit :

> Use the technique of sorting by a function call for each line to set  
> a value.
>
> on testSort
>   put the clipboarddata into theListOfFriends
>   sort theListOfFriends numeric ascending by sortByThisValue(each)
>
>   ;put theListOfFriends
> end testSort
>
> function sortByThisValue singleLineOfList
>     set the itemdel to "/"
>     get word 2 of item 1 of singleLineOfList & "/" & item 2 of  
> singleLineOfList & "/" & "01"
>   --English system -- remove the next line
>     get  item 2 of singleLineOfList  & "/" & word 2 of item 1 of  
> singleLineOfList & "/" & "01"
>     convert IT to seconds
>      return IT
> end sortByThisValue
>
> This should do the task you want
>


re,

yessssssss  !!
thank you

Greetings.

Yves COPPE
yvescoppe at skynet.be




More information about the use-livecode mailing list