# Sorting XML Category via attributes HELP!

**URL:** <https://forum.kirupa.com/t/sorting-xml-category-via-attributes-help/235734>\
**Category:** flash\
**Created:** [August 14, 2007, 11:06am UTC](https://forum.kirupa.com/t/sorting-xml-category-via-attributes-help/235734 "2007-08-14T11:06:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![flycom](https://avatars.discourse-cdn.com/v4/letter/f/898d66/32.png) [@flycom](https://forum.kirupa.com/u/flycom)\
**Post date:** [August 14, 2007, 11:06am UTC](https://forum.kirupa.com/t/sorting-xml-category-via-attributes-help/235734/1 "2007-08-14T11:06:50Z")

</div>

Hello @ll.

I have problem with sorting categories via attributes:

my Xml file look like that:  
\<xml\>  
\<data Default=“show all” \>  
\<item client=“client Name” regie=“Mike” cat=“2007” /\>  
\<item client=“client Name” regie=“Mike” cat=“2005” /\>  
\<item client=“client Name” regie=“Mike” cat=“2006” /\>  
\<item client=“client Name” regie=“Mike” cat=“2007” /\>  
\<item client=“client Name” regie=“Mike” cat=“2007” /\>  
\</data\>  
\</xml\>

I know how to display all data from XML and Sort via Categories and create buttons from categories.

What I would like to do is display just one category when I press the button with category name.

Any suggestions please?

I can provide .Fla file if necessary!

Thanks!!
