I have a text with numbers like this: 24 12 4 65 33 etc (with no itemDelimiter).
I neet to sort this numbers, maybe I need to convert this text in a list, so how can I do to convert a text in a list?
Thanks.
You could try setting the itemDelimiter to SPACE, then walk through your string item by item dropping the values into a list:
on split str, pat
tDelim = the itemDelimiter
the itemDelimiter = SPACE
tList = []
nItems = str.item.count
repeat with i = 1 to nItems
tList.append( value(str.item[i]) )
end repeat
the itemDelimiter = tDelim
return tList
end
Then you can sort the list returned and do what you want with it.
North America
Europe, Middle East and Africa
Asia Pacific