     }
     
 }
-}+}


import mx.collections.ICollectionView;
import mx.collections.IList;
import mx.collections.Sort;
import mx.collections.SortField;
import mx.core.EventPriority;
import mx.core.IFactory;
import mx.core.IIMESupport;

     *  @param fields The array of SortFields to search through.
     *  @param isComplexDataField true if the dataField is a path.
     */
    private static function findSortField(dataField:String, fields:Array, isComplexDataField:Boolean):ISortField
    {
        if (dataField == null)
            return null;
            
        for each (var field:ISortField in fields)
        {
            var name:String = field.name;
            if (isComplexDataField && (field is GridSortField))
