Sorting XML -- images

This Kirupa tutorial is very useful for sorting text retrieved from XML: 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. :slight_smile: