There should be a "unique" option on sort . . .

Alejandro Tejada capellan2000 at gmail.com
Sun Jan 5 19:53:53 EST 2014


Did you test the handler created by Scott Raney
for his stack "MetaTalk Examples"?

Maybe you could adapt this handler for your purpose

Jacque posted a variant of this handler,
some time ago:

on Mar 07, 2007, Jacqueline Landman Gay wrote:

> The old MetaCard IDE shipped with a very efficient word-counting script 
> as one of its examples. Here it is with superfluous stuff removed and 
> reformatted as a function: 

function wordCount pText 
   repeat for each word w in pText 
     add 1 to wordCount[w] 
   end repeat 
   put keys(wordCount) into keyWords 
   sort keyWords -- optional 
   repeat for each line l in keyWords 
     put l & tab & wordCount[l] & return after tResult 
   end repeat 
   return tResult 
end wordCount 

Have a nice week! :D

Al



--
View this message in context: http://runtime-revolution.278305.n4.nabble.com/There-should-be-a-unique-option-on-sort-tp4674372p4674462.html
Sent from the Revolution - User mailing list archive at Nabble.com.




More information about the Use-livecode mailing list