# Sorting XML -- images

**URL:** <https://forum.kirupa.com/t/sorting-xml-images/163245>\
**Category:** flash\
**Created:** [September 20, 2005, 11:50pm UTC](https://forum.kirupa.com/t/sorting-xml-images/163245 "2005-09-20T23:50:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hgfl](https://avatars.discourse-cdn.com/v4/letter/h/8e7dd6/32.png) [@hgfl](https://forum.kirupa.com/u/hgfl)\
**Post date:** [September 20, 2005, 11:50pm UTC](https://forum.kirupa.com/t/sorting-xml-images/163245/1 "2005-09-20T23:50:49Z")

</div>

This Kirupa tutorial is very useful for sorting text retrieved from XML: [http://www.kirupa.com/web/xml/examples/sortedgradeslist.htm](http://www.kirupa.com/web/xml/examples/sortedgradeslist.htm)

Does anyone know how I can have images that correspond to the text within the xml (i.e. a line in the xml document would include a path to the image: \<student first=“James” last=“Johnson” gpa=“3.3” image=“folder/filename.jpg” /\> ) and then allow that to be sorted along with the text?

So, when you click one of the buttons at the top to sort, the images re-arrange too so all related data sticks together…

Thanks for any help you can give. 🙂
