Sorting numbers from XML (need help)

hello everyone,

I have an XML-file which looks something like this:

<team>
<player name=“blabla” nr=“41” pos=“def” />
<player name=“blablaasd” nr=“3” pos=“off” />
</team>

Then, i have 3 txtfields to hold name,nr and pos. What i can’t figure out is…how to sort the
list i create according to the ‘nr’-node. So it will automatically set the player number ‘1’ as the first on the list. Any help or hint would be swell…
(BTW, i’m working with AS2 in flash8)

cheers

mikz

One possible solution - Retrieve the XML data and store it in an array. Then sort the array based on the nr value, then finally populate the list.