Here is a devshed article on Sorting and Filtering ArrayCollections in Flex:

If you're already familiar with Flex and ActionScript you will know how useful the listBase controls are to fast RIA developent. When working with the List, Tree, DataGrids and other controls you may first be looking to get over the hump of populating your control with the correct data. Understanding the breadth and depth of dataProviders is an article in itself (not discussed here). Once you do have an understanding of them, you may be in a situation where you will need to do further manipulations like sorting or filtering. The ActionScript library has a few nifty classes that work in conjunction with the ArrayCollection (used as a dataProvider for list based controls) that help with this type of functionality. In this article I will build a basic application which uses an an ArrayCollection as a dataProvider and apply sorting and filtering to it.

Click here to read the article