# Sort thumbs based on XML attributes

**URL:** <https://forum.kirupa.com/t/sort-thumbs-based-on-xml-attributes/207154>\
**Category:** Uncategorized\
**Created:** [November 15, 2006, 4:18am UTC](https://forum.kirupa.com/t/sort-thumbs-based-on-xml-attributes/207154 "2006-11-15T04:18:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gnizm](https://avatars.discourse-cdn.com/v4/letter/g/e19adc/32.png) [@gnizm](https://forum.kirupa.com/u/gnizm)\
**Post date:** [November 15, 2006, 4:18am UTC](https://forum.kirupa.com/t/sort-thumbs-based-on-xml-attributes/207154/1 "2006-11-15T04:18:40Z")

</div>

Sort thumbnails by xml attributes  
Hello, I have a photo gallery with rows (and columns) of thumbnails generated by xml and a Flash For Loop.

What I want is to have a drop down box with options that will say “New York”, “Philadelphia”, “New Orleans”. When a user chooses one it will trigger a function that would ‘look’ into my XML file for a “Philadlephia” or “New York” XML Attributes and then only loop those photographics tagged with that particular Attribute.

I have been trying to figure this out for a while and I am not getting anywhere…

Can someone help me out a little on this?

Thanks…

Carl
