title: Flex AS3 Arraycollection sorting based on Array of values
body: <p>I have been working on sorting Arraycollection like ascending , descending the numeric list. Total length of my collection will go up to 100. Now I want to preform sort to nested data like this</p>
  
  <p><strong>Data Structure</strong></p>
  
  <pre><code>Name : String
  Categories : Array ["A","x or y or z","C"]
  </code></pre>
  
  <p>Categories array will have maximum 3 items , out of that three items the second item can have 3 different values either X or Y or Z. My result data looks like here</p>
  
  <pre><code>{"Mike" , ["A","x","C"]}
  {"Tim" , ["A","y","C"]}
  {"Bob" , ["A","x","C"]}
  {"Mark" , ["A","z","C"]}
  {"Peter" , ["A","z","C"]}
  {"Sam" , ["A","y","C"]}
  </code></pre>
  
  <p>anyone please explain how to sort this type of data in a way showing all "x" first , "y" next and "z" at the last and vice a versa. Any help is really appreciated. Thanks Anandh. .</p>