XML sortBy?

wondering how simple it would be to sort some xml in order by attribute or node inside Flash, rather than reloading the data?

Had a look at the class and I couldnt see anything there that would do the job.

any ideas?