                     {
                         var coll:ICollectionView = getChildren(obj);
                         
-                        var srt:Sort = new Sort();
+                        var srt:ISort = new Sort();
                         
                         if(sort.usingCustomCompareFunction)
                             srt.compareFunction = sort.compareFunction;

     *  @private
     *  Storage for the sort property.
     */
    private var _sort:Sort;

    [Bindable("sortChanged")]
    [Inspectable(category="General")]

            
            if(sortLevel == 1)
            {
                var srt:ISort = new Sort();
                        
                if(sort.usingCustomCompareFunction)
                {
