Ok, this is a tricky one.
I store items on a string like this (it's just an example, what i actually store aren't names, but some other thing):
Alex,14;Emanuelle,12;Hector,5;Laurence,13;Fabrizio,10
When i want to write all these items on the screen, i use a FOR loop, and the tokenat() function to retrive all the values in order.
It ends up like this:
Alex 14
Emanyelle 12
Hector 5
Laurence 13
Fabrizio 10
I want to create a function that rearranged the objects based on some property of the item. For example, rearrange the names on ascending age order, like: Hector, Fabrizio, Emanuelle, Laurence and Alex.
How can I do that. With events.